Reference Track Mastering Match
Operator: Abdulla Al Fahad. How tools are built and checked
A mix that sounds right in the studio often sounds thin, boomy or quiet next to a finished record, and the gap is usually a handful of broad tonal differences plus loudness. Both files are measured, the bands where your mix is weaker or stronger than the reference are worked out in third-octave steps, and the difference is applied as a gentle EQ, never more than the limit you set.
It then sets the loudness, keeps the true peak under a ceiling you choose with a look-ahead limiter that is checked against an oversampled measurement, and lets you flip between the original and the matched version at the same volume. The result is a starting point to listen to and adjust, not a verdict on how the track should sound.
Key features
- Long-term average spectrum of both files in third-octave bands from 25 Hz up to 16 kHz (29 bands) or 20 kHz (30 bands, at 48 kHz), with silence below -60 dBFS left out of the average
- A matching EQ limited to between 1 and 9 dB per band (6 dB by default), smoothed over 0 to 4 neighbouring bands and scaled by a strength slider
- Linear-phase FIR filtering of 511, 1023 or 2047 taps, so the EQ does not shift the phase of your mix
- Optional stereo width matching: the side channel gets its own per-band gain so its level against the middle follows the reference
- Loudness set to the reference's integrated LUFS or to -14, -11 or -9 LUFS, with a true-peak ceiling of -0.3, -1, -1.5 or -2 dBTP
What the match changes and what it leaves alone
Both files can be MP3, WAV, FLAC, M4A, AAC or OGG, stereo or mono, up to 10 minutes each. The reference is decoded at your mix's sample rate (between 22.05 and 48 kHz), so the two spectra line up bin for bin. Only the first two channels are used.
The export is a 24-bit PCM WAV at the mix's sample rate, or a 256 kbps MP3. The matched file is not dithered, because it is 24-bit, and the limiter works on 32-bit floating-point samples before that conversion.
Loudness is measured to ITU-R BS.1770 (K-weighting, 400 ms blocks, absolute gate at -70 LUFS and relative gate 10 LU below), the method EBU R128 uses. The loudness range uses the 3-second short-term values with a 20 LU relative gate, and the true peak shown in the table comes from a 4 times oversampled reading with a 24-tap filter, the usual meter design. The limiter measures more finely than that, as described below, so the result sits a little under the ceiling on that meter.
How it works
Each file is mixed to mono for the EQ measurement. Frames of 8,192 samples with a Hann window and 50% overlap are transformed, and the power in each FFT bin is averaged over all frames louder than -60 dBFS RMS. The bins inside each third-octave band (centres 1000 Hz times 10 to the power n/10) are averaged, and the result is a level in dB per band.
The match curve is the reference minus your mix per band. Its average between 100 Hz and 10 kHz is removed first, because overall level is handled by the loudness step, not by the EQ. Then the curve is smoothed with a triangular window, multiplied by the strength, and clamped to the limit.
The curve becomes a zero-phase magnitude on a 16,384-point grid, interpolated linearly in log frequency between band centres. An inverse transform gives the impulse response, which is cut to the chosen length with a Blackman window and applied by overlap-add convolution. With stereo width matching on, the middle and side signals go through separate filters and are recombined.
The loudness step adds a gain, then the limiter looks ahead 2 ms: it reads the 4 times oversampled peak with a 48-tap Kaiser filter per phase, re-reads every sample within about 1.4 dB of the ceiling at 8 times with 96 taps per phase (four phases can miss an inter-sample peak near Nyquist by up to 0.5 dB), takes a sliding minimum of the gain needed, averages it over the look-ahead window and releases over about 120 ms. It aims 0.35 dB below the ceiling, because oversampling filters disagree by a tenth of a dB or more on noise-like material, and measures the result, correcting the gain up to three times for the loudness the limiter removed. A last check measures the file again at 8 times and takes any remaining excess off the whole file; if that still leaves it over, the page says so. White noise and bright hi-hat material stay at or under the ceiling when measured with much longer reference filters.
Common use cases
- A producer finishing an EP loads each mix against the same reference single, and sees that every mix needs about 3 dB less around 250 Hz before touching a plugin.
- A podcaster matches a new episode to a past episode that listeners liked, with width matching off because both are mono.
- A mastering student sets the maximum EQ to 2 dB to see how little change gets close to a reference, then raises it to 6 dB to hear where it starts to sound processed.
How to use this tool
- Choose your mix first, then the reference; the reference is decoded at the mix's sample rate.
- Set how much EQ is allowed, how smooth the curve should be and the loudness and ceiling you want; switch on width matching if both files are stereo.
- Press Match, then use Play with A and B to compare original and matched at equal loudness while the table and the curves fill in.
- Export a 24-bit WAV, or an MP3 if you only need to share it.
Example
A pair of 30-second test files: a quiet, dull mix (low-passed pink noise) and a louder pink-noise reference. Settings: loudness -11 LUFS, ceiling -1 dBTP, maximum EQ 6 dB, smoothing 1 band, strength 100%
Mix: -29.8 LUFS, true peak -16.45 dBTP. Reference: -13.8 LUFS, true peak -2.92 dBTP.Matched file and EQ curve
Integrated loudness -11.06 LUFS, true peak -1.34 dBTP, the limiter took at most 2.87 dB
The EQ curve runs from -5.0 dB to +6.0 dB, reaching the +6 dB limit where the two spectra differ most
The original plays 18.7 dB louder in the A/B so both versions sound equally loudCommon pitfalls
The EQ is one fixed curve for the whole track. A mix whose balance changes between a quiet verse and a loud chorus is averaged, so neither section is matched exactly.
Linear-phase filters can ring a little before sharp drum hits, which is called pre-ringing. Use the 511-tap length if a transient sounds softened.
Matching to a reference that was itself heavily limited does not copy its density: only the average spectrum and the loudness are matched, not its dynamics.
- Choose a reference with a similar instrumentation and a similar amount of low end; the match cannot make a solo piano sound like a four-piece band.
- If the curve sits at its clamp across several adjacent bands, the mix needs a mixing fix, not more mastering EQ.
Common errors and how to fix them
- The reference could not be decoded at your mix's sample rate
- Choose the mix again after the reference fails, or convert the reference to WAV or FLAC; the page needs both files decoded at the same rate.
- Your mix is too quiet or too short (under 0.4 s) to measure loudness
- Use a file that is at least half a second long with audible content; a block of silence has no loudness to match.
- The limiter could not reach the target under the ceiling
- A quiet, dynamic mix needs more gain than a -1 dBTP ceiling allows at -9 LUFS. Pick a lower loudness target or a higher ceiling; the page reports the level it did reach.
Best practices
- Leave about 1 dB of headroom in the mix you bring: the page gains it back, and the limiter works less hard on a mix that was not already clipping.
How accurate the match and the ceiling are
The match curve follows a known EQ closely: applying a smooth 3 dB sine-shaped EQ to pink noise and matching an independent pink noise to it recovers the curve within about 0.6 dB per third-octave band from 63 Hz upward for 30 seconds of noise. The remaining error is the statistical spread of noise in narrow low-frequency bands, so short clips measure the bass less precisely.
A 1.0-amplitude sine at a quarter of the sample rate with a 45-degree phase has no sample above 0.71 but a true peak of 1.0 (+0.11 dBTP on the page's meter). Limited to a -1 dB ceiling, it measures -1.34 dBTP on that meter.
What it does not do
There is no multiband compression, saturation, stereo widening beyond the per-band side gain, or dynamic EQ. It does not claim to be professional mastering: it is a measured tonal and loudness match whose settings you can see and undo.
Frequently asked questions
Why does it compare at equal loudness instead of showing the louder version first?
A louder version nearly always sounds better, so the original is played at the same integrated loudness as the matched file (by the difference of the two LUFS readings). That makes the comparison about tone, not volume.
Can it match a mono mix to a stereo reference?
Yes for the EQ, which uses the mono mix of each file. Width matching needs two stereo files and is skipped with a note otherwise.
Does it change the length or pitch of the track?
No. The EQ filter delay is removed, so the matched file has exactly the length of your mix.