Hi,
How would I increase the amplification of an audio file and will that amplification change if say the original sound file was a wave and then the file was converted to a format such as mp3?
Thanks,
Nightwalker
Printable View
Hi,
How would I increase the amplification of an audio file and will that amplification change if say the original sound file was a wave and then the file was converted to a format such as mp3?
Thanks,
Nightwalker
Are you asking how to change it permanently to be stored within the file?
Amplification is multiplication.
Multiply too much and you'll get clipping as the loudest parts exceed the maximum/minimum value that can be stored.
Find the highest amplitude within both channels of your sound (song, whatever).
e.g. when you found within 16Bit PCM-Stereo (looping over both, the left and right
channel), the max. Amplitude (Abs(signed 16bit integer)) of 19500, then your formula
would become:
19500 * ScaleFactor = 32767
So, in this case you would not cause any clipping, when you multiply with a
ScaleFactor smaller or equal to 1.68
Olaf
I found WaveIn Recorder which, does what I need except it is for WaveIn. Does Wave-in work the same way as loading a sound file and permanently changing the amplification of the file? The reason I ask if because I found some code that allows for the amplification of Wave-In which then allow the user to save the result to a file and I was wondering if I could use that code?
I think the only different between Wave-In amplification and load file amplification is that the Wave-In method saves the after amplify the sound whereas loads the in to the program then amplifies the sound?
That form of english I have a hard time understanding.:confused:
I think the intuitive answer is if you have to ask then the answer is probably no.
If you don't know what the code is doing, or what your code is doing well enough to answer the question, then probably you will have problems trying to adapt and use it in your project.:o
Then why not use one of the (OpenSource) commandline-tools for that (which should also exist in different windows-versions).
IIRC, these will allow to read one format (e.g. *.wav) - and write it out in either the same format -
or as *.ogg or *.mp3 ... then often supporting quite some extra-params - as e.g. "reduce to Mono",
or "enhance to Pseudo-Stereo" or "change BitDepth" or "change amplitude using a ScaleFactor",
or "normalize amplitude".
Just google for them (I don't remember them from the top pf my head) - but:
[Sound conversion commandline utilities] or something like that should raise some results.
Olaf