Poly Aftertouch messages sometimes duplicated

max's icon

Hi all,

I’m having an issue with Poly Aftertouch in Max. Even after [zl unique], some notes are still sent twice when routed to [midiformat][midiout].

Setup: I generate Poly Aftertouch in Max, already filtered as much as possible at the output of my function via [change] objects, then send through [zl unique][midiformat][midiout] to my MIDI interface.

Problem: Certain notes repeat very quickly, which causes issues on my hardware.

I suspect it’s related to timing, bursts, or how [zl unique] handles nearly simultaneous messages.

Does anyone have a simple way to ensure each Poly Aftertouch value is sent only when it changes, without adding noticeable latency?

This is a bit urgent for an upcoming project, so any tips would be really appreciated.

Thanks!

Max