On this page

Play two versions of a master one after the other and the louder one will sound better: fuller, clearer, more exciting. That preference is about level, not quality, and it makes most quick comparisons worthless. The fix is mechanical. Measure both files, turn the louder one down by the difference, and only then listen. It takes about five minutes and it changes the answer more often than people expect.

The procedure

1. Measure both files

ffmpeg -nostats -i masterA.wav -af ebur128=peak=true -f null -
ffmpeg -nostats -i masterB.wav -af ebur128=peak=true -f null -

From the summary of each, note the integrated loudness in LUFS and the true peak.

2. Work out the gain

Always turn the louder file down; never turn the quieter one up, which can push its peaks over full scale.

gain for the louder file = loudness of the quieter file − loudness of the louder file

Worked this way, with the louder file adjusted, the gain is negative, or zero if the two already match. If you subtract the other way round, or adjust the quieter file, the same number comes out positive; that is a boost, and its peaks need checking before you use it. A difference of 1 LU is 1 dB of gain.

3. Make a matched copy

ffmpeg -i masterB.wav -af volume=-1.1dB -c:a pcm_f32le masterB-matched.wav

Replace -1.1dB with your figure. Writing 32-bit float avoids adding dither or rounding to the comparison copy. This file is for listening only; it is not a deliverable.

4. Verify

Measure the matched copy. Its integrated loudness should equal the other file to within 0.1 LU. If it does not, check for a typing error in the gain.

5. Listen without knowing which is which

Put both files on adjacent tracks in a DAW, aligned at the same start, one muted. Loop a section and switch with a single key. Then make it blind: ask someone to rename the files X and Y, or close your eyes, press the switch an unknown number of times and judge what you hear before looking. Compare a quiet passage, the entry of the chorus and the loudest eight bars.

Measured experiment

The procedure run on two synthetic masters

Run on: November 11, 2026, by script, for this guide.

Input: two versions of a 20-second synthetic test master with no recorded music. Master A is the dense test signal used in the encoding check; master B is the same material after a further stage of soft clipping. Both were scaled to a true peak of −1.0 dBTP. Software: FFmpeg 6.1.1, ebur128 filter.

Before and after matching
FileIntegrated loudnessTrue peak
Master A−7.4 LUFS−1.0 dBTP
Master B−6.3 LUFS−1.0 dBTP
Master B after −1.1 dB−7.4 LUFS−2.1 dBTP

Result: gain = −7.4 − (−6.3) = −1.1 dB. After applying it, the two files read the same integrated loudness at FFmpeg's one-decimal precision. With the same peak ceiling, B was 1.1 LU louder than A; once matched, B's true peak sits 1.1 dB lower than A's. That gap is the price B paid for its extra density, and it is what the listening test should now judge.

Scope: a demonstration that the arithmetic and the commands do what they say, on synthetic signals. It makes no claim about which version sounds better. Script and raw output are retained and available on request through the contact page.

What to listen for once levels match

  • Transients: does the snare still crack, or has it turned into a thud?
  • The chorus entry: does it lift? See why a chorus gets smaller after mastering for a way to measure it.
  • Sustained notes: any roughness or pumping on held vocals and bass.
  • Tone: a difference in brightness or bass that remains after matching is a real EQ difference, not a level illusion.

Limits of the method

  • Integrated loudness is one number for the whole file. Two masters matched overall can still differ in a given section. If the comparison is about one passage, measure and match that passage.
  • Loudness is not a perfect model of hearing. Files with very different bass content can measure the same and feel slightly different. A final adjustment of a few tenths of a decibel by ear is legitimate, as long as you do it before judging and not after.
  • Matched playback is also how many listeners will hear the song. Services that normalize do the same thing you just did. The loudness and headroom calculator shows the gain a service would apply to each version.

Primary technical references

  1. ITU-R, Recommendation BS.1770: Algorithms to measure audio programme loudness and true-peak audio level.
  2. EBU, Recommendation R 128: Loudness normalisation and permitted maximum level of audio signals. Loudness normalisation as a practice.
  3. FFmpeg, Filters documentation. The ebur128 and volume filters used above.