Skip to content

Mastering

Mastering is the final processing step before release. It prepares a mix for distribution by balancing perceived loudness, broad tonal shape, dynamics, stereo image, and peak safety.

In the libsonare demo, mastering runs locally in WebAssembly. The file is decoded in the browser, processed through a configurable chain, and exported as WAV without uploading audio to a server.

What It Controls

AreaGoal
LoudnessMatch the selected target such as -14 LUFS or -16 LUFS.
ToneMake broad corrections without remixing individual instruments.
DynamicsControl peaks and density while preserving movement.
StereoKeep width useful without breaking mono compatibility.
PeaksAvoid clipping after conversion or streaming playback.

In The Demo

Use Quick Master for preset-driven rendering. Use Studio to adjust module-level controls such as compressor threshold, air band amount, stereo width, limiter ceiling, and lookahead.

Processing Chain

The browser demo presents the chain as a small number of musical decisions, but the render still follows a deterministic DSP path.

The grouped guides below explain the implementation details without splitting every parameter into a thin page:

Implementation notes

The chain is intentionally ordered from corrective stages to final delivery stages.

Stage areaWhy it appears there
Repair and input gainClicks, noise, DC offset, or very low input level can mislead later detectors
Broad tone shapingDynamics should react to the tonal balance the listener will hear
Stereo processingWidening can change peak relationships and mono compatibility, so limiter and meter stages need to see it

The final loudness stage should not be treated as a simple gain knob.

Integrated LUFS is measured over the rendered material. True peak is checked on an oversampled path. The limiter ceiling remains a separate safety constraint.

When these stages disagree, peak safety wins over target loudness. Otherwise a master can pass a LUFS target while still clipping after codec conversion.

Related: LUFS, True Peak, A/B comparison, Browser Local Processing, Mastering Implementation