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

ForestCat's icon

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.

Evan's icon

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

path live_set tracks 0 devices 0 parameters 0

Max Patch
Copy patch and select New From Clipboard in Max.

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.

ForestCat's icon

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