reaper_auto_level
Writes gain automation to a track's pre-FX volume envelope to level quiet and loud windows toward a target while keeping silence and excluded ranges at 0 dB.
Instructions
Write gain points into the track's pre-FX volume envelope (shown if hidden) so each window moves toward the target level: quiet parts boosted, loud parts cut, silence and excluded parts kept at 0 dB. Replaces existing envelope points in the range. One undo step. Run reaper_analyze_levels first.
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": {
"track": "<track>"
},
"name": "reaper_auto_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| unit | No | 'seconds', 'beats' (quarter notes from project start) or 'bars' (1-based, fractional allowed) | bars |
| start | No | ||
| track | Yes | Track number as shown in REAPER (1-based, 0 = master) or exact track name | |
| window | No | Analysis window size in `unit` | |
| exclude | No | Parts to leave untouched (0 dB): region/marker-section names or {start, end} ranges in `unit` | |
| gate_db | No | Windows quieter than this (dBFS RMS) count as silence and are never boosted | |
| strength | No | Fraction of the correction applied; <1 keeps some natural dynamics | |
| target_db | No | Target RMS dBFS; median of analyzed windows if omitted | |
| max_cut_db | No | ||
| max_boost_db | No |