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

  1. 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.
  2. Wire target (track) into AudioTrack: devices or MidiTrack: devices getter nodes, then wire the device into DeviceParameter: setValue() action nodes as your template shows.
  3. For a fixed change, set parameter index or name and value in the node settings.
  4. For user control, add Show Dialog before Transaction, wire slider values into parameter inputs.
  5. Chain Run through each DeviceParameter: setValue() step; use Transaction so multiple parameter writes undo together.
  6. 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

See also