Simple ‘sequencer’ that advances when it receives a trigger (which can be a MIDI Note or MIDI CC). The sequence is just a series of notes (and their velocity). The notes are entered by holding down a pad and sending a note to the script or by ‘listening’ to a series of notes.
This simple script was written to be easily modifiable. Hack away!