Activate/Deactivate a Live device.

Luca Hofmann's icon

Hello,
I am new to the forum and to m4l as well.
I want to create a M4L device that collects all devices of a track and manipulates their on/off state by a midi signal. As long as C1 is pressed I want to have the first device activated. For the second device on the track it is C1# and so on.. you get the idea.
I did take a look at the LOM but did not find a way to set the active state of a live.object. I assumed to find something like set active false.
I found a device that does something similar: green switch but I did not find the logic where the devices are set to on or off..
Can somebody help me with this topic?

benj3737's icon

it's parameter 0

Luca Hofmann's icon

Hey Benj3737,
thank you for the answer. If I got you right you mean: set active 0 ?
Unfortunately this does not work. Here is my setup and the console output if I send the message.

benj3737's icon

send 'path live_set tracks X devices Y parameters 0' to live.path, then the id to to the right inlet of live.object. then send 'set value 1' 0r 'set value 0' to the left inlet

Luca Hofmann's icon

Thank you!