I need a little help with math here...

Posted by: SE_Sport_Driver

I need a little help with math here... - 17/10/2004 14:59

I have 10 sound files saved in wav format that I'm trying to normalize to the same SPL level. Each is pink noise of a certain frequency range. Using a normal "normalize" function in Cool Edit only normalizes the peak value, but I need the SPL to be equal across all files. I'm guessing I'll need to amplify each wave file by a certain amount to get them to all reach the same value (-3 or -6dB I'm guessing). I was going to do this by trial and error, but I'm hoping that there is an easier way...

Here are the values for what I have:

Band 1: 50hz / -16.2dB
Band 2: 100hz / -22.94dB
Band 3: 180hz / -22.8dB
Band 4: 350hz / -22.16dB
Band 5: 700hz / -22.27dB
Band 6: 1.30khz / -22.52dB
Band 7: 2.50khz / -22.37dB
Band 8: 5.00khz / -22.48dB
Band 9: 10khz / -23.2dB
Band 10: 18khz / -24.46dB
Posted by: Mataglap

Re: I need a little help with math here... - 17/10/2004 17:03

Replay Gain <http://replaygain.hydrogenaudio.org/>

You might be able to use foobar2000 to just knock these guys out: scan them, and then use the diskwriter (applying replaygain) to put them back out as waves, and then recode into your preferred format. If the source files are already encoded, you might be able to tweak the source code of mp3gain, vorbisgain, wavgain to set to the SPL you're looking for.

--Nathan
Posted by: image

Re: I need a little help with math here... - 17/10/2004 18:42

goldwave also has SPL normalizing, if i recall correctly.
Posted by: SE_Sport_Driver

Re: I need a little help with math here... - 17/10/2004 23:55

ReplayGain seems to work within the ID3v2 tages... I forget if the empeg supports that...

Goldwave does not support SPL normalization, at least not without a plugin.
Posted by: SE_Sport_Driver

Re: I need a little help with math here... - 18/10/2004 00:04

Nope, replaygain doesn't work on the empeg I guess.. so I need to find a way to do this with the wave file. I might have to crunch the numbers and do it manually with the "Amplify" command.
Posted by: Mataglap

Re: I need a little help with math here... - 18/10/2004 12:03

Nope. the empeg doesn't understand the =replaygain= tags. but that's why you would need to either use something like foobar2000's diskwriter which can be set to honor the replaygain settings on output or modify the actual source file by the calculated value. If standardized volume (either 83 or 86 dB I think) is fine for you, you should just be able to run the files through wavgain using the per-track (radio) setting.

Wavegain

--Nathan
Posted by: SE_Sport_Driver

Re: I need a little help with math here... - 18/10/2004 12:22

Wavegain looks like a winner... thank you!