Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Replaygain magic number (Read 2993 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Replaygain magic number

While I was trying to figure out a way to approximate an album gain from track gains and track durations alone, Garf came up with the idea of using the 95th percentile of a sorted list of all track gains, weighted by track durations (track gain values in that list are repeated as many times as the number of seconds of their respective track).

As it turns out, the 34th percentile is the magic number that matches album gains the closest in my personal collection (391 albums): 0.25 dB deviation on average, with a maximum of 1.3 dB, including odd cases with silent tracks and wild variations between tracks.

Any idea why that number works so well?

Replaygain magic number

Reply #1
Most collections should have an individual number like that.

Replaygain magic number

Reply #2
Well, I don't know about that. What's interesting here is that it matches even albums in my collection that are very different from the rest: parts of silence, tracks gains varying greatly, etc…