set_device_routing
Set a device's input routing in Ableton, like selecting a sidechain source track. Specify track, device, and routing channel to configure audio inputs.
Instructions
Set a device's input routing (e.g., select a sidechain audio source).
For sidechain on Compressor/Gate: typical usage is to set the routing channel to another track's name (e.g., "5-Kick"). Names are matched case-insensitively via substring.
Call get_device_routings first to discover the exact type/channel names available.
Parameters:
track_index: Track containing the device
device_index: Position in the chain
routing_type_name: Routing TYPE name to match (e.g., "External Input"). Empty to skip.
routing_channel_name: Routing CHANNEL name to match (e.g., "5-Kick"). Empty to skip.
track_kind: 'regular' (default), 'return', or 'master'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_kind | No | regular | |
| track_index | Yes | ||
| device_index | Yes | ||
| routing_type_name | No | ||
| routing_channel_name | No |