Filtering consecutive duplicates of the same note

chapelier fou's icon

Hi,

seemingly a very simple problem, but I'm struggling to figure it out.

I want to avoid a note to be triggered if the same note has been played less than x ms before.

(context : running notes thru a scale quantizer, sometimes two notes are rounded to the same note)

Ideas ?


TFL's icon

I would do something like this

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

which will pass all notes if they are all different, even if triggered within the set delay.

chapelier fou's icon

Seems to work perfectly @TFL, thanks !!

chapelier fou's icon

Well, except for notes off....

(edit, which should be easy to fix)

(edit, except that if I let all notes off go through, the note off corresponding to the excluded note on would close the "correct" note on if it's shorter. Damn, MIDI is annoying).