This is practically my first script for a hardware device so it’s probably badly written but so far it works as I intended it. I liked the experience a lot and wish I can keep on making that sort of stuff… maybe write a full-blown sequencer with pots and switches one day
If you have one that can be used as a mouse or keyboard for your computer, you can use it as a midi device over USB. This would let you test out your parameters with midi CC messages instead of hooking up lots of pots and switches.
Density: controls the amount of slides and rests. The higher the value, the less rests and slides
Random probability: Controls the probability for the next step to be randomized. 0: step will stay as is. Max: step will be randomized. Anything in between for self-evolving sequence