What's new

How to stop generated notes triggering key-switch

jfino

Member
Hi Everyone,

Hopefully someone can point me in the right direction.

My script makes simple power chords. Using play_note multiple times.
Also I have key switches.

Now, some of the low generated notes are triggering key-switches.
I could just move my key switch further away but I have limited space on the keyboard.

Any ideas on how to stop the generated notes triggering the key switch?

Thanks for your advice!
 
Hi,

I assume the commands of the keyswitches are in the note callback. If yes, put the commands into this criteria. It checks if the note callback is from the outside, or from one of the script slots.
Code:
if(get_event_par($EVENT_ID,$EVENT_PAR_SOURCE)=-1)

end if
So it only allows to execute the command if the trigger isn't generated.
I hope it helps.

Best regards,
Peter
 
OP
jfino

jfino

Member
Hi,

I assume the commands of the keyswitches are in the note callback. If yes, put the commands into this criteria. It checks if the note callback is from the outside, or from one of the script slots.
Code:
if(get_event_par($EVENT_ID,$EVENT_PAR_SOURCE)=-1)

end if
So it only allows to execute the command if the trigger isn't generated.
I hope it helps.

Best regards,
Peter
Thank so much Peter! works great! Exactly what I needed.
 
Top Bottom