How to associate output routing ID's with actual track ID?

Mark's icon

when i select an output routing for my midi M4L device i want to automatically Arm the destination track.
i had achieved this in a previous implementation where i was using the old (now deprecated) LOM messages where the ID of the track routings were based on the actual track number.
With the new LOM though, the [dict] "Identifier" of each track routing is abstract and unrelated to the actual track number, or the actual LOM ID, so i need to figure out a way for the patch to automatically associate the output routing track Identifier, with the the actual ID of that track.

any thoughts?


broc's icon

I think you could use 'display_name' of output routing to search the track list for this name (assuming unique track names).

Motimer Pavlitski's icon

Hi Mark,
Yes it's a big problem when routing audio with max for live. I spent months working on an ambisonic routing bridge between devices for my Masters and had to solve this problem. I used the display_name and compared the available outputs of two devices. The output's missing from a device's available outs belong to that device. Once you know that you can query a device for its "ins"/the available out that belong to that device. Just have to watch out for what track the device is set to look at (routing_type).

All my code is on git hub if you want to take a look and copy any bits out. https://github.com/Mortimyrrh/MTools-for-Live


I made a post about it a year or two ago
https://cycling74.com/forums/max-4-live-live-10-deviceio-get-available_routing_channels-invalid-id