M4L : changing midi output channel of a track, possible ?

Spip's icon

Hello,

I would like to change the midi channel in the output menu of a midi track in Live. I've searched in the LOM reference without success. Is it possible or am I missing something ?
I'm totally new to API things so forgive me if it's a dumb question.

Thanks in advance.

broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

It can be done by setting the property current_output_sub_routing.

Spip's icon

Thank you very much !
I'm trying this right now.

Spip's icon

It works fine !

It took some times to sort it out because I was stuck by a message error saying : "Live API is not initialized, use live.thisdevice to determine when initialization is complete". A lot of readings for discovering that the only thing to do is to close the patch…

Thanks again. It makes my day :)