A technical support community for Apple Logic Pro users.

 
AlexBerty
Topic Author
Posts: 11
Joined: Thu Jul 16, 2020 4:35 pm

Note toggle/alternation script needed

Thu Aug 06, 2020 2:07 am

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!
 
AlexBerty
Topic Author
Posts: 11
Joined: Thu Jul 16, 2020 4:35 pm

Re: Note toggle/alternation script needed

Thu Aug 06, 2020 7:19 am

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?
 
User avatar
Dewdman42
Posts: 3096
Joined: Tue Sep 09, 2014 3:01 pm
Location: Salt Lake City, UT

Re: Note toggle/alternation script needed

Thu Aug 06, 2020 12:15 pm

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) {
    event.send();
    return;
}
5,1 MacPro 3.46ghz x 12 128gb ram, OSX 10.15 on OpenCore, Logic Pro 10.5, Mainstage3, Cubase10.5, StudioOne4, Reaper, DP10, VEP7, VSL, too many plugins to list