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
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.