Actually tried the code on my Teletype today! Did my usual Turing Machine / Noisering / SoU script, but tweaked to take advantage of all the new features.
This is the I script, the first 3 lines set up a pentatonic scale in pattern 3. The 4th line empties patterns 0 and 1. And the final 2 lines set the first 8 entries of patterns 0 and 1 to random 0s and 1s.
And then this is the actually Turing Machine-esque script. (Though there is a minor typo, PN 4, should really be PN 3, but it still works!)
(one caveat, I increased the number of ops per line from 12 to 16, just for my local build)
Here is the commit for anyone that wants to see:
In particular see process_command:
(I’ve added some comments so hopefully it’s easy to follow along.)
It still needs more testing, in particular I need to check things like delays and stacks work properly. I’m stilling aiming to put a PR in once the I2C stuff is sorted out.