|
Post by OP1I on Sept 16, 2018 8:48:03 GMT
Hello, what is the simplest way to use a single keyboard note pressed and released, and use it to toggle between sending a CC value of say 127, and then 0. On off first time = 127, second on off = 0, etc.... New user here and sorry if it’s rudimentary. Thanks!
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Sept 16, 2018 11:15:29 GMT
Not that rudimentary, as you need to keep track in order to toggle. I would just use the note on event (ignore note offs).
Here is an example (middle C note, CC# 64 both on channel 1):
# trigger CC with note IF LOAD # constants - change to suit # K0 = chan/note, K2 = chan/cc ASS K0 = 90 3C B0 40 # L0 current toggle value ASS L0 = 0 END
# check for note trigger 9X XX 00 = 8X IF M0 == K0 K1 # toggle CC value MAT L0 = L0 ^ 7F
# send CC SND K2 K3 L0 END
Regards, Nic.
|
|
|
Post by OP1I on Sept 16, 2018 23:18:48 GMT
That works great! Thanks for the quick answer, and probably saved me 100 hours.
|
|