Forums > Max For Live

Can a device's status(i.e. enabled) be observed?

March 8, 2014 | 8:28 pm

As an example, I have a vst loaded in the first slot of the first track. The path of its power button is "path live_set tracks 0 devices 0 parameters 0"

Is there a way to set up an observer to watch this? Property "is_enabled" can’t be listened to.
Thanks for any info.


March 8, 2014 | 9:05 pm

Yes!
Set up a live.observer with a path like:

path live_set tracks 0 devices 0 parameters 0

for the first device on track 1. the first parameter of any device is always it’s on/off switch.
Then set the property to ‘value’ for the observer. 1 = on, 0 = off.

<code>

– Pasted Max Patch, click to expand. –

</code>


March 8, 2014 | 10:33 pm

Evan,
Thanks. I thought I tried "value", but your patch works! I really appreciate it.


Viewing 3 posts - 1 through 3 (of 3 total)