|
Post by cnsgmusic on May 12, 2024 18:48:50 GMT
Is there a simple way to lay out an array of MIDI messages and create a Streambyter rule that only those MIDI messages may pass through?
I'm familiar with scripts that only pass through ranges of channels, values, note-types, etc. But wondering if there is a simple way to specify which exact messages are allowed (perhaps across all message types & channels?)
Another huge help to my workflow would be to know if there exists some kind of "OR" command so I could take something like this:
and turn it into:
Thanks in advance for any help or guidance you have here. Both of these would totally change my approach to Streambyter!
|
|
|
Post by redheronmusic on May 14, 2024 1:57:07 GMT
Block version
# Red Heron Music # May 13, 2024 # Array block logic # List messages to block in array (Format Bx nn) # End array with 00
If load Ass i0 = B0 02 B0 03 B0 04 B2 00 B2 32 00 End
If MT == B0 Ass j0 = 00 Ass j1 = 01 While ij0 != 00 If M0 == ij0 ij1 Block Exit End mat j0 = j0 + 2 mat j1 = j1 + 2 End End Pass version
# Red Heron Music # May 13, 2024 # Array pass logic # List messages to pass in array (Format Bx nn) # End array with 00 # This is set up to operate only on control changes, but this can be adjusted
If load Ass i0 = B0 02 B0 03 B0 04 B2 00 B2 32 00 End
If MT == B0 Ass j0 = 00 Ass j1 = 01 Ass j2 = 00 While ij0 != 00 If M0 == ij0 ij1 Ass j2 = 01 Exit End mat j0 = j0 + 2 mat j1 = j1 + 2 End If j2 == 0 Block End End
These are configured to operate only on control change messages.
If you change the If MT == B0 to >= A0, then it operates on everything except notes. Or remove the outer if statement wrapper to process any message.
|
|