Master Cue
master_cueStandardize finished audio cues for platform delivery. This tool applies professional loudness normalization (LUFS) and utilizes fixed peak limiting and true-peak catching to ensure delivery compliance.
Instructions
Master a finished cue (a teaser, a stinger, a song for posting) for delivery: cut source to start_s..end_s
(seconds; end_s=None keeps the rest), fade the ends (cos^2; 0.4 s out by default), resample to sr, then ONE fixed
gain to lufs integrated (BS.1770). Only if that gain puts the true peak (4x oversampled) over the ceiling does a
lookahead peak limiter take the excess, and its gain reduction is reported; then a true-peak catch (4x
oversampled, +-1.5 ms lookahead, 25 ms release, no re-gain after it) takes whatever the limiter left, so the wav
ends at or under tp. With the catch the limiter gets up to 6 rounds, each aiming lower by what the last re-gain
put over. mp3=True also writes a 320k mp3 beside the wav, made from a copy caught again at tp - mp3_catch_db (a
320k encode lands up to 1.25 dB over its wav, so 1.2 keeps it under tp); only the mp3 gets that catch, the wav
keeps its loudness, and the decoded mp3's true peak is reported. mp3_margin_db lowers the wav's own ceiling to
tp - mp3_margin_db (0 by default). tp_catch=False is the master from before (3 plain rounds, no catch). Never a
dynamic loudness ride (ffmpeg loudnorm falls back to one on some files). Writes 24-bit wav to out= (default
_master.wav beside it, the mp3 as .mp3); a file already there is moved to old/ beside it first,
never overwritten. -16 LUFS / -1 dBTP suits most platforms; -14 / -1 for a louder stream. Read the report
before anyone listens: it is the measurement line for the round.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sr | No | ||
| tp | No | ||
| mp3 | No | ||
| out | No | ||
| lufs | No | ||
| end_s | No | ||
| source | Yes | ||
| start_s | No | ||
| tp_catch | No | ||
| fade_in_s | No | ||
| fade_out_s | No | ||
| mp3_catch_db | No | ||
| mp3_margin_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |