Get List of Devices in a track, and turn them on or off

Sep 6, 2011 at 2:34am

Get List of Devices in a track, and turn them on or off

Hi,

Is there a way to get a list of devices(do not need name, but if it had 3 devices(say drumkit + 2 effects) is there an object that would return 3, and another that would allow me to toggle a particular device on and off(ie sending device 3 on/off would toggle the last effect).

thanks

#58772
Sep 6, 2011 at 4:54am

Reading my last post again, i realize it was worded poorly,

This is a bit more direct,

I’d like to:
Query: Number of channels.
Query: How many devices any one of those channels has.
Toggle a device on any of the channels on/off

Thanks

#211259
Sep 6, 2011 at 8:18am

I think your questions are answered in the LOM documentation

http://www.cycling74.com/docs/max5/refpages/m4l-ref/m4l_live_object_model.html

#211260
Sep 13, 2011 at 8:11pm

hi broc,

if possible could you look at the following snipit,

It should toggle a toggle box when i toggle on/off the first device on the first track.. live.path splits out Id 0, so it looks that i’m not sending it the correct path, but it’s what i gathered from the API as to what i should send it..

– Pasted Max Patch, click to expand. –
#211261
Sep 13, 2011 at 10:20pm

In your path you need to replace ‘is_enabled’ by ’0′, which is the number of the device on/off parameter.
I thought it was documented in the LOM but seems not there..

#211262
Sep 14, 2011 at 8:42pm

hey, that worked! thank you!

#211263

You must be logged in to reply to this topic.