Here is another challange for a latency-free (real time e-drum) script:
Incoming note 36 shall alternate between output 36 and 35.
incoming note 36 ---> output note 36, after then incoming note 36 ---> output note 35, after then incoming note 36 ---> output note 36 again, after then incoming note 36 ---> output note 35 again, and so on...
All other midi events should run through unaffected.
Thanks in advance!
I'll donate for a helping hand!