looking for a midi-channel-filter-patch

gh0stless's icon

i have a vst-instrument, that sends midi-notes on different channels (1-bass, 10-drums etc) live can´t handle this. (can´t select the the channel to route the signal on diffrent tracks with other vst-instruments) so i look for a m4l-midi-effekt-patch that filter only the midi-data of the channel i want. anybody know such a patch?

Andrew Pask's icon

Have a look at the midiselect object

-A

gh0stless's icon

Why this not work?

4019.ChannelFilter.amxd.png
png
Andrew Pask's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Andrew Pask's icon
Max Patch
Copy patch and select New From Clipboard in Max.

oh , and maybe for Max 5

GreaterThanZero's icon

[midiselect] doesn't appear to support high res pitch bend, which has become more important in the years since this thread. Here's a quick alternative that might serve you better, if you have such a need:

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

Note: this isn't meant to be reconfigured on the fly, but just in case, I'm triggering [midiflush] on selection change. This should avoid stuck notes, but it will not reverse any bend/touch/cc messages which might have been applied to the previous channel.

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

If you're dealing with more than one channel, this solution is probably more efficient than the previous:

Rafal Zalech's icon

in the subpatcher you need to change "pack" to "join @trigger 1" otherwise it won't work properly :)

GreaterThanZero's icon

Side note:
My comment from 2016 is no longer accurate.
[midiselect @hires 1] is better than whatever I suggested (which was probably xbend).