# audio.update

Source: https://docs.lightair.app/developers/remote-api/audio.update

> Changes a mixer track's pan, trim, mono, phase, sync offset or monitoring.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `track` | `string` | yes | The track's id or name, or its source's. |
| `pan` | `number` | no | −1 (left) to 1 (right). |
| `trim_db` | `number` | no | −24 to 24 dB. |
| `mono` | `boolean` | no | Mix it to mono. |
| `invert` | `boolean` | no | Invert its phase. |
| `sync_ms` | `number` | no | Its sync offset, −2000 to 2000 ms. |
| `cue` | `boolean` | no | Hear it in the monitoring mix. |

## Errors

Not found (-32004) for an unknown track.

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `audio (action: update)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "audio.update", "params": { "track": "Mic", "sync_ms": 120 } }
```

Result:

```json
{}
```

## Related

- [audio.set](https://docs.lightair.app/developers/remote-api/audio.set.md)
- [effects.add](https://docs.lightair.app/developers/remote-api/effects.add.md)
