set_device_parameter
Set a device parameter by index or name; value is automatically clamped to the parameter's min/max range.
Instructions
Set a device parameter (e.g. a Utility's Gain, a Compressor's Threshold) by its index or its name. Call get_device_parameters first to see names/ranges. The value is clamped to the parameter's min/max.
Parameters:
track_index: The track holding the device
device_index: The device's index in that track's chain (0 = first)
parameter: Parameter index (int) or exact parameter name (str)
value: The value to set (in the parameter's own units, e.g. dB for Gain)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| parameter | Yes | ||
| track_index | Yes | ||
| device_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |