I’m trying to create an Input Transformer that filters out repeated 127 sustain events. (This is to get around a weird behavior of my physical sustain pedal).
Here’s what I’ve come up with:
The way I understand it, I’m looking for sustain events that has the value of 127, which their last event was a sustain event of value 127.
For some odd reason this ends up filtering ALL 127 sustain events. Where I expect it to filter it only if it’s not the first one.
Anyone has any idea why and how can I achieve what I want?