Can an M4L device find the rack that it's in?

Apr 11, 2013 at 11:14pm

Can an M4L device find the rack that it's in?

Hello all

This might be quite simple but i still use the max4live API in a relativey basic way.. but I was wondering when using live.path to set the device parameter you want to control (a macro in the rack that the m4l device is part of) i was wondering if there’s a way that an m4l device can find the rack it’s in rather than having to specify which track / device. This to avoid having to change the path in the devices every time I add or remove things and the racks can be saved self-contained and work in any set.

Any thoughts gratefully received!


Apr 12, 2013 at 12:00am

hm… for instance if it was a midi effect, if you placed it at the very beginning of the rack, couldn’t it just go “back one” – that would get the rack itself, wouldn’t it?

Apr 12, 2013 at 12:25am

Parent of the device is chain and parent of the chain is rack, so path of the rack is
‘this_device canonical_parent canonical_parent’

– Pasted Max Patch, click to expand. –
Apr 12, 2013 at 11:03am

great – thank you


You must be logged in to reply to this topic.