Debounce and Poly notein re-order

pereshaped's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I am trying to sort the order in which a group of 4 polyphonic notes arrive. I am using zl sort to sort in ascending order, but there seems to be a lot of bounce which alters the result when letting go of the keys (note offs) It could be MIDI controller. Having spent most of my time with MSP I fear it might be a simple MAX solution but do not seem to find an object to debounce the keys. Any help would be welcome. Thanks

pereshaped's icon

I seem to have managed to cure it, but why stripnote doesn't work earier up in the chain puzzles me. I have resorted to 4 of them and this registers the pitches in ascending order without any glitch bounces in the result.

Max Patch
Copy patch and select New From Clipboard in Max.

Maybe there is a more elegant way, this seems to work.

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

In your original patch replacing the second [pack] with [pak] may solve your problem.

pereshaped's icon

Rick, many thanks, [Pak] did the trick.

markjosol's icon

without any glitch bounces in the result.

______________________________________________Fut 14 Coins