logic_level
Measure rendered audio to calculate loudness, true peak, and stereo balance, then plan or apply track gain and pan corrections for a balanced mix.
Instructions
Measure rendered audio and balance the mix from it.
Logic's meters report clipping only, with no numbers, so levels are measured from audio rather than read
off the UI — which is what a human engineer does anyway.
analyse - loudness (gated LUFS per BS.1770), true peak, crest, stereo correlation and spectral
balance for each file in `paths`.
plan - the above, plus a proposed gain and pan per stem. Nothing is applied.
export_and_plan - render one stem per track out of Logic first, then plan.
apply - carry the plan out on the matching tracks, verified in dB. dry_run reports what it
would do without touching anything.
mode matters. "relative" adds each gain to the track's CURRENT fader, which is right when the stems were
rendered through those faders (export_and_plan). It is NOT idempotent — running it twice applies the move
twice. "absolute" treats each gain as the fader position itself, which is right for stems that came from
outside this project, and is safe to re-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | relative | |
| paths | No | ||
| action | Yes | ||
| dry_run | No | ||
| apply_pan | No | ||
| directory | No | ||
| reference | No | ||
| headroom_db | No | ||
| max_move_db | No | ||
| max_seconds | No |