set_sidechain
Duck a track whenever another source plays by applying sidechain compression through Live's Compressor, with control over threshold, ratio, attack, release, and routing channel.
Instructions
Duck track whenever source plays: sidechain compression, e.g. a bass or pad pumping to the kick.
Uses Live's Compressor, the only device whose sidechain input the API can route: device, else the first
Compressor on the track, else a new one at the end of its chain. source: the triggering track (it needs
audio output; for a kick inside a drum track, use that track). channel: "Post FX" (default), "Pre FX" or
"Post Mixer". Sets S/C On, threshold (dB), ratio, attack and release (ms); enabled=False turns it off.
Example: set_sidechain("Bass", "Drums", threshold_db=-30, ratio=6, release_ms=150).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| track | Yes | ||
| device | No | ||
| source | No | ||
| channel | No | Post FX | |
| enabled | No | ||
| attack_ms | No | ||
| release_ms | No | ||
| threshold_db | No |