tune_param
Iteratively sets one FX parameter and re-measures after each render to hit a target audio outcome (e.g., bass LUFS down 3 dB), then reports the measured result.
Instructions
Outcome-driven parameter search: iteratively set ONE FX parameter and re-measure until a target audio outcome is hit (e.g. bass LUFS-I down 3 dB), then report the measured result. Target: {"metric": "lufs_i"|"band_db", "delta": -3.0, "tolerance": 0.5, "band_hz": [lo,hi] for band_db (needs Post Mortem)}. delta is relative to the baseline measurement. ASSUMES the metric moves monotonically with the parameter (gain-like params); stops with NON_MONOTONE and restores the initial value when that is violated. EXPENSIVE: baseline + up to 5 iterations, each a render that blocks REAPER's UI — warn the user before calling. Each set is one undo point. On UNCONVERGED/UNREACHABLE the best-observed value stays applied and the result says so honestly; final always carries the READ-BACK live parameter state. Requires ONE FX selector (fx_name_contains or fx_index) AND one parameter selector (param_index or param_name_contains). Needs allow_audio_writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | Yes | Exact track name (case-insensitive). | |
| target | Yes | The measured outcome to hit, relative to the baseline capture. | |
| seconds | No | Capture length 1-60 (default 10). | |
| fx_index | No | FX selector by index (with fx_scope). | |
| fx_scope | No | Required meaning for fx_index (default track). | |
| param_index | No | Parameter index (preferred; scan first). | |
| fx_name_contains | No | FX selector by substring. | |
| param_name_contains | No | Parameter by unique substring. |