Choke Midi / Lookahead Midi

Andi G's icon

Hi, I want to create a midi effect that creates constant 16th notes unless there is midi played by the user. In my current solution I encounter one main problem:

1) When pressing a midi the metro still fires the on event, I would need a lookahead on the incoming midi or some choke device. I could let the stop event pass the gate but then I would still create the note -it's not about that.

Also the last note misses the stop event and is longer then the set note length.
Thank you

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

Jean-Francois Charles's icon

Here is an example that closes a [gate] when at least one note is played.

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

Andi G's icon

Hi Jean-Francois, thank you for the help. The midi note that should get prioritised and chokes comes from the "midiin" not the keyboard. The keyboard is just for setting the pitch in that midi effect. The problem on that gate is not the mechanism of setting the gate to close that works in my patch as well. The problem is that the incoming midi from "midiin" and the other midi from "metro" happen at the excact same time and the note on event passes that still right before that gate gets closed.

The funny thing is that I wanted to make screenshot of that midi I recorded out, and now the problem doesn't occur anymore :D I just reopened the DAW since the post. Maybe it was just some random bug.

Jean-Francois Charles's icon

Not sure of the details you're working with, but when I hear "at the same time" and "right before", my mind goes obviously to some [t] object.

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