Change volume or pan via device parameters
Goal: Set a device’s controls (volume, pan, macro, or any exposed parameter) from your extension.
Time: ~15 minutes
Steps
- Right-click the device you want to drive in Live and note its place on the track — your trigger is often On Audio Track or On MIDI Track with a path to the device.
- Wire target (track) into AudioTrack: devices or MidiTrack: devices getter nodes, then wire the device into DeviceParameter: setValue() action nodes as your template shows.
- For a fixed change, set parameter index or name and value in the node settings.
- For user control, add Show Dialog before Transaction, wire slider values into parameter inputs.
- Chain Run through each DeviceParameter: setValue() step; use Transaction so multiple parameter writes undo together.
- Build & Run, right-click in Live, run the command, and move the control in Live’s UI to verify.
Expected result
The device parameter jumps to your wired or preset value. Undo restores previous values when steps are inside Transaction.
If something goes wrong
| Problem | What to do |
|---|---|
| Parameter does not move | Confirm device index/name matches Live; wire correct device object |
| Wrong device | Wire target from trigger; insert device first if chain was empty |
| Dialog then no change | Show Dialog must be outside Transaction; wire Then → setter chain |
| Build unwired obj | Device/track inputs must be wired — settings alone are not enough for objects |
| Multiple params, one undo | Keep all DeviceParameter: setValue() nodes inside one Transaction body |