|
Post by sergiogolivek on Jul 26, 2019 19:27:08 GMT
Hello!! I need help with a question ... I hope you can solve it! I thank you very much;)
What I need is as follows:
Create an XY pad so I can send two commands at once, so far no problem. I set the pad like this:
X = Note 0, Velocity = X (0 thru 127)
Y = Note 1, Velocity = X (0 thru 127)
But what I need is to send only two values (0 or 127). If the value X is increased send the value 127, if it is decreased send 0. Similarly with the Y.
I hope you can help me with this, I wait !!
Thank you!
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 2, 2019 10:41:17 GMT
Hi sergiogolivek , This little bit of code (compatible with MidiFire, StreamByter and Midi Designer) will issue a note on with 127 velocity if it sees that note increase or 0 if it sees that note decrease. This will operate on all notes independently passing through: IF LOAD ASS L0 = 0 # lookup table END
# convert note offs to note on velocity 0 8X XX 00 = 9X
# if it's a note... IF MT == 90 # value increased IF M2 > LM1 SND M0 M1 7F END # value decreased IF M2 < LM1 SND M0 M1 00 END
# retain current value ASS LM1 = M2
# block original message XX = XX +B ENDRegards, Nic.
|
|