Back to Requiem

Volume normalization

Gated loudness measurement, cached per song, with four target levels.

Requiem measures each song in LUFS, using the formula and gating from ITU-R BS.1770.

  1. The audio is split into blocks, and the energy of each block is converted to LUFS.
  2. Blocks below an absolute threshold are dropped.
  3. The mean of the remaining blocks sets a relative threshold 10 LU below it.
  4. Blocks below that threshold are dropped, and the mean of the rest is the song's loudness.

loudness_cache.cpp stores the loudness and the peak for each song, which means a song is measured once. Settings has Off, Quiet, Normal and Loud options, and normalization is on by default.

Crossfade is set separately and goes up to 12 seconds.