looking for a midi-channel-filter-patch

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?

[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:

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.

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.

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

-- Pasted Max Patch, click to expand. --

Copy all of the following text. Then, in Max, select New From Clipboard.