Gating midi stream -> hanging note's

Eardrum Nibbler's icon

Hi,

I'm a beginner in max for live programming.

I created a very basic note probability patch.
I wanted to add a gate that I can control via my Push 1.
So I can stop the stream of midi instantly and not have to turn the probability knob to 0%.

I got the gate working but sometimes I have "hanging" notes when I close the gate.

Who can help me?

Nibblers Note Probability.amxd
amxd 23.91 KB

Kind regards,

Jeroen

Source Audio's icon

when you close gate, any notes that did not receive note off
will hang.
you must pass input through flush or midiflush, depending
on your input and flush them when closing gate.

Eardrum Nibbler's icon

Thx mate!!!