Help - Search - Members - Calendar
Full Version: What is this formula? scale=10.^(replay_gain/20)
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
leehihi12
Hello, I'm a music related programmer in Korea. sorry ugly English wink.gif
I'm under development of MP3 Decoder. in particular, I'm interested in voulmn normalization.
So looking for various data, I found your great documentation in the replaygain.org.
I'm wondering about the following formula of the Scale to the Replay Gain Secion (http://replaygain.hydrogenaudio.org/player_scale.html).

scale=10.^(replay_gain/20);

This formula is shown in the Decoder(Winamp plugin, MPG123 and so on) using ReplayGain.
I don't know what it is.
I was wondering if it is possible for me to get more details.

Thank you for reading. smile.gif
dios-mt
I did not read the text you linked, but the formula looks quite typical.
This formula calculates the scale factor from the replay_gain value which comes in dB.

[Edit] Added first sentence, fixed typos
chromium
QUOTE (dios-mt @ Sep 12 2008, 08:20) *
I did not read the text you linked, but the formula looks quite typical.
This formula calculates the scale factor form the replay_gain value which comes in dB.


dB is defined as 20*log10(ratio)
ratio therefore is found as: ratio = 10^(db/20)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.