Input Transformer Last Event not working as expected

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?

Hi,

This works for me, if I use it as Logical Editor Preset.

And I can confirm, it doesn’t work this way, when using as Input Transformer.

So is this a bug?