# editor.sound.ducking

Source: https://docs.lightair.app/developers/remote-api/editor.sound.ducking

> Sets how the canvas turns ducked clips down under voices.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `on` | `boolean` | no | On or off. |
| `amount_db` | `number` | no | 1 to 40. |
| `threshold_db` | `number` | no | −80 to −6. |
| `attack_ms` | `number` | no | 0 to 2000. |
| `hold_ms` | `number` | no | 0 to 5000. |
| `release_ms` | `number` | no | 0 to 5000. |
| `reset` | `boolean` | no | Back to the defaults, keeping `on`. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `ducking` | `{ on: boolean, amount_db: number, threshold_db: number, attack_ms: number, hold_ms: number, release_ms: number }` | no | The ducking. |

## Errors

Invalid params (-32602) for a value out of range. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_sound (action: ducking)` reaches this method.

## Related

- [editor.sound.duck_as_keys](https://docs.lightair.app/developers/remote-api/editor.sound.duck_as_keys.md)
- [editor.clip.set](https://docs.lightair.app/developers/remote-api/editor.clip.set.md)
