Jump to content

Note toggle/alternation script needed


Recommended Posts

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!

Link to comment
Share on other sites

I think it just has to be the "Note Stepper" from the Scripter. But how can I set it in order to only affect note number 36? (all other notes and events should be unaffected). Every note will step using the "Note Stepper" default script. So can you please give a hint how to modify the script?
Link to comment
Share on other sites

I won't have time to look at this today...if I get a few minutes I will.... You might try asking the forum about modifying the factory script, that should be pretty straightforward if you are confident it already does what you want but you only want it to happen for notes coming in on pitch 36, then can simply add the following code to the top of the HandleMIDI function


if(event.pitch != 36) {

OSX 12.x (Monterey) on OpenCore - Logic Pro 10.7.4, VePro7, Mainstage3 - 5,1 MacPro 3.46ghz x 12 96gb ram

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...