|
Post by espiegel123 on Jun 24, 2018 3:52:02 GMT
I want to use a note-cluster (let's say holding down C2, C#2,D2,D#2) as a way to temporarily turn my keyboard into a bank change controller.
The pseudo code would be this
IF allKeysInClusterDown translate the next key press into bank change END
Unrelated question, is there a library of MIDI Fire scenes that people have built?
Thanks.
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 24, 2018 11:02:55 GMT
Hi espiegel123 You want to keep a count of when your 4 notes are held down/released and when all 4 are down then do something else: IF LOAD ASS L0 = 0 # number of held triggers END
# force convert note off to note on vel 0 8X = 9X XX 00
# count triggers (4 contiguous notes, handy) IF M0 >= 90 30 IF M0 <= 90 33 # one of the trigger notes was held/released IF M2 == 0 # trigger released, decrement counter MAT L0 = L0 - 1 END IF M2 != 0 # trigger held, increment counter MAT L0 = L0 + 1 END END END
# all 4 trigger notes held IF L0 == 4 # do your stuff here END
I typed the above in by hand. There may be compile/logic errors, but it's the method that counts! Also, assumes that events are on channel 1. Re: user scenes - Run up the 'Scenes Club' under Setup and you'll find a bunch of scenes from yours truly and some from customers. I might have some news soon about a 3rd party collection of Stream Byter modules. Regards, Nic.
|
|
|
Post by spookyzoo on Jul 8, 2018 22:39:53 GMT
Love this code for a cluster-trigger. Works nicely.
|
|