envelope
List, read, or replace automation points for a REAPER track parameter such as volume, pan, or mute, with optional beat-range editing and gain/dB conversion.
Instructions
Track envelopes. action: list | get | set. name is REAPER envelope name (Volume, Pan, Mute, ...). set replaces all points, or with start_beats / end_beats only the points in that range (ends included; every new point must lie inside it); get with a range returns only those points. value is the envelope's value; Volume is linear gain (1.0 = 0 dB, 0.5 = -6 dB), also on fader-scaled envelopes. unit=db reads/writes volume-type envelopes (Volume, Trim Volume, send Volume) in dB. set re-activates an envelope left inactive (ACT 0).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"track_index": "<track_index>"
},
"name": "envelope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| unit | No | ||
| action | Yes | ||
| points | No | ||
| end_beats | No | ||
| start_beats | No | ||
| track_index | Yes | ||
| envelope_index | No |