ideoforms / AbletonOSC

Control Ableton Live 11 via Open Sound Control (OSC)
MIT License
429 stars 70 forks source link

Device in a group #32

Closed laimison closed 1 year ago

laimison commented 1 year ago

I can change Gain on a first device on the first channel:

Screenshot 2022-12-07 at 02 01 25
    params = (0, 0, 1.0, 1.0)
    client.send_message("/live/device/set/parameters/value", params)

How to achieve same when device is in a group?

Screenshot 2022-12-07 at 02 03 09

I guess, behind the scene, we have to get Device object from this group (it's maybe a Chain.Devices). And then use this object in /live/device/set/parameters/value . Is it supported now?

laimison commented 1 year ago

It seems behind the scene, it can be changed with:

        song = application.get_document()
        d = song.view.selected_track.devices[0].chains[0].devices[0]
        d.parameters[1].value = 1.0