Midi re-routing/translator

spin lud's icon

I have an APC40 controller which sends duplicated midi notes on different channels when using different pads (eg A3 channel 1, A3 channel 2, A3 channel 3 etc..).

I would like to reroute these notes to other notes, for example:

A3 channel 1 -> C2 channel 4
A3 channel 2 -> D2 channel 4
A3 channel 3 -> E2 channel 4

Do you think this is possible in M4L? Do you know a device that is already capable of this type of rerouting?

Greg Ross's icon

Depending on what you want to do with the midi it may be doable but it might be better to use a separate application to do it. Live “flattens” all of the incoming midi to channel 1 anyway so it’d end up back on 1 at some point. Depending on what you’re trying to do you may need to convert the midi before it gets to Live instead of after. What’s the end goal?

schlam's icon

As greg said Live flattens all channels (a real shame in 2025 in my opinion) it's easier to make your conversion outside Live but one solution can be to create one track per channel and to do the conversion in each track. It depends of what you want to achieve after

spin lud's icon

I need to remap some of the pads of the APC40 so that they send different midi notes instead of the same midi note but on different channels (basically I need the pads to behave like a keyboard). The goal is to send these midi notes to another plugin which can trigger different effects based on the midi note received.

Greg Ross's icon

You could do it in Max for sure and route the midi from your device to Max instead of Live then from Max to Live after it’s been modified. If you’re using a controller script with it in Live you could probably grab the controls with a device and then make them spit out whatever you want also? I haven’t used an apc40 but you should be able to grab the controls the same way you can with push I believe? If that’s doable it might be the simplest way to do it without a ton of routing midi around.

spin lud's icon

Yes APC40 has a a controller script, I'll probably need some time to study and modify it.

I am surprised that something so basic can't be done directly in M4L. This Live midi channel flattening is quite weird

Greg Ross's icon

Yeah it’s been a pain for years, the control script hack might be the way to go? You don’t have to modify the script, you can make a m4l device that grabs some of the controls from the script and can repurpose them that way. I’ve made a few for push on maxforlive.com and I’d bet there are some for the apc40 on there as well, you could open them up to get an idea of how to do it.