Poly Aftertouch messages sometimes duplicated
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!
M
why should one use zl.unique to filter repetitions ?
you need zl.change instead.
you can filter key-value before sending list to midiformat
in case you need midiformat object for whatever reason.
If you have fixed midi channel, then I would use
160 $1 $2 (midi channel 1)

If you create streams of polytouch messages on several midi channels
then take that also into account.
P.S.
this is assuming that you filter individual keys in first place
as you stated in your post.

thanks a lot that's great !
but why you prefer use the 160 $1 $2 system than MIDI format ? there is some bugs with it ?
thanks and best,
M
160 $1 $2 is simply and only poly touch on channel 1.
why use external that can do much more ?
Have a look at this coll based filtering for each key :
If you use that, then no need for any further filtering,
unless you want to thin data even more by dropping
too many poly pressure messages, even if they are not repeated