|
Post by annahahn on Aug 9, 2019 16:11:27 GMT
Could someone please help me by providing me with the code required to clip midi cc values such that only a specified range of values passes through streambyter?
I would like all cc values for controller #17 lower than 9 and greater than 17 to be clipped such that they do not exit streambyter and only cc values between 9 and 17 pass through
I would like to make this such that it only clips cc values on controller #17 and does not effect other cc controllers or note input on the same channel (channel 1 if this is relevant)
Thank you so much for your help! Please let me know if any additional information would be helpful!
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 9, 2019 17:02:25 GMT
Hi annahahn, Here's the simplest way, but requires hex numbers: # block CC17 value 0 to 8 and 18 to 127 B0 11 0-8 = XX +B B0 11 12-7F = XX +Bor, for StreamByterAU you can do it without hex but with if conditions: if M0 == B0 $17 # cc 17 on channel 1 if M2 < $9 # block if cc value is less than 9 block end if M2 > $17 # block if cc value is greater then 17 block end endRegards, Nic.
|
|