block midi notes already on ?

MAX's icon

Hi list,
in order to protect a fragile midi instrument, I would like to build a special Max4 live Midi Device.
I have a lot of midi informations coming from various modules. Sometimes, two modules can send the same midi notes in close proximity to each other. so I would like to block incoming MIDI notes which are already on. Do you have an idea how I can manage that ?
thanks by advance

Source Audio's icon

your problem would be to distinguish note on and note off messages.
if note ON 44 came from A, then again from B, then note 44 OFF from B
how to deal with note OFF from A, if it came short after note ON 44 came in from B in the meantime ?

What I want to say, you need to look at it as one note no matter where it comes from,
and decide if you want retrigger, sustain or whatever else.



MAX's icon

Thanks Source Audio !

yes normally I can achieve that when I use the makenote object, changing the repeat mode.
But here, there is a lot of differents upcoming makenote objects which send datas on the same midiout module.
How I could adapt the repeatmode function of the makenote to this midiout ?

Source Audio's icon

I am not sure if I understand that all correctly,
but instead of using several, try single makenote object.
I mean send pitch-velocities from all that sources to single makenote object using s/ r

MAX's icon

ha yes I thought about that - but I have a lot of differents modules with a lot of presets recorded. So i would like to avoid to change the architecture of the global patch.
Maybe it will be ok if I just had a midi module which block some MIDI notes. Like you said in your previous post, if note 44 from A is on, block note 44 coming from B.

All theses MIDI stuff are a bit tricky for my Max skills.

Source Audio's icon

If you refuse to use single makenote object then it makes me wonder if it will take less time to construct that midi module that handles filtering
of multiple notes coming from many
sources

MAX's icon

Ha yes you're true ! I started to update the first part of the patch, it works like a charm.
Thank you
M.