I'm trying to filter out all the NoteOn Velocity 0 from my [midiin] with [stripnote].
What I'm trying to achieve is let every other MIDI information pass to the output (CC, Pitchbend, Systex..), but if it's a note, remove it's NoteOff
I'm a bit lost on how to accomplish this task!
What's the best way to receive data form [midiin] and if it's a note, [stripnote] it and send it back, and if its other type of MIDI message let it pass..
I’m new to puredata and i’m trying to filter out a specific MIDI message but i’m having some problems.
The message I’m trying to avoid reach my MIDI output is : MIDI NOTE 51, Velocity = 0. (A note off)
I just want to pass to the output the Note On 51, and not the Note Off. All other notes I want to pass the note on and off.
I tried using a stripnote object between my midiin and midiout but it will filter out other notes too.
Any ideas how to do that ??
In code, I want something like this:
if (note == 51 and velocity == 0)
Let it pass;
Any idea ?