|
Post by klay2000 on Mar 31, 2021 6:05:30 GMT
Hi guys
Can anyone tell me what this script is doing in stream byter. I think it was intended to block repeat program change messages from going to a lighting controller so that it would not register any note off (lights off) messages on an obey 40
Thanks in advance
# Enter rules here # Press 'Install Rules' when done
9X XX 00 = 8X IF MT == 90 IF M0 == GF0 GF1 XX = XX +B END ASS GF0 = M0 M1 END
|
|
|
Post by uncledave on Mar 31, 2021 17:31:09 GMT
MT 90 is note on, so it blocks duplicate note on messages. Interestingly, it does that even with a matching note off in between, so you cannot play the same note twice in succession. It has no effect on Program Change, MT C0.
I can do this line-by-line if you like, but you've done a bit with StreamByter, so you can probably do that yourself.
Edit: I don't know how you use MIDI channels, if at all, but this script only blocks duplicate note ons if they are on the same MIDI channel. If notes arrive on different channels, they will never be blocked. This is because it compares the current message M0, which includes the channel, with the previous M0 value saved in GF0.
|
|
|
Post by klay2000 on Apr 5, 2021 13:13:19 GMT
Hi.
Thanks very much for replying to my message
I use the lighting controller on midi channel 13. Actually yes it's supposed to block the repeat on message Bcs 2 on messages will toggle the lights off. Does that sound right?
Much appreciated
|
|