#(at % 8 {2 60
7 55})
will yield: nil nil 60 nil nil nil nil 55 nil nil 60 nil nil nil nil 55 nil ...
But shouldn't the amount of nils between 60 and 55 be seven and not four?
Hi Louigi,
Thank you very much for testing, much appreciated!
On Thu, Aug 2, 2018 at 7:04 AM, Chris McCormick <chris@mccormick.cx> wrote:
>> Speccy is a browser-based livecoding environment for making
>> procedural chip tunes in ClojureScript.
>>
>> https://chr15m.github.io/speccy/
On 02/08/18 21:23, Louigi Verona wrote:
> Is it possible to have a button to
> play the code or at least a less used shortcut?
Yes good idea I will add this. Will help on mobile devices too where you
can't hit `ctrl`.
> Ctrl-S would try to save
> the html if I click somewhere else first and I wish playing code
> would've been simpler.
Ctrl-S should not try to save the page as the event is supposed to be
suppressed. Can you let me know:
* What browser/OS you are on.
* If you see any errors in the console (ctrl/cmd-shift-J).
* What is in the editor box when you saw this happen.
This will help me replicate & diagnose.
> And then a question - is it possible to save the tune? So that it can be
> used, say, in a game?
Yes that's a great feature idea. In the short term it would probably not
be too hard to export some number of bars to JSON. The JSON could then
be used to re-render the tune in the browser or on the command line for
playback. I'll add it to the list.
Thanks again!
Cheers,
Chris.
--
http://mccormick.cx/