Technical discussions related to Audio Signal Processing (digital effects, acoustics, noise reduction, musical signal processing, etc).
Hi all, I have a two audio files ..File A and File B. File A has overall gain of -23dB and File B has gain of -5 dB , Now If i want to equalize the gain i.e amplify the File A to match it to File B without degrading audio quality how to achieve this? Anticipating a reply. Thanks in advance. Warm Regards, Rohith M P______________________________
Hi Rohith, What do you mean by overall gain? If you are talking about dBFS RMS power, you will have to look at limiting and compression to achieve this - basic remastering. To normalize an audio file, based on peak values, with reference to File B, rather than 0dBFS: Divide the peak value (not the dB value, the actual sample value) of File B, by the peak value of File A. This will give you the amplification factor. Multiply all samples in File A by the amplification factor. The peak values will be equal, however the RMS will not. You could build in a function to ignore excessive peaks (pops + clicks) if they are reducing the effectiveness of the normalisation. Hope this helps, Tom. Rohith MP wrote: > > Hi all, > > I have a two audio files ..File A and File B. > > File A has overall gain of -23dB and File B has gain of -5 dB , Now If > i want to equalize the gain i.e amplify the File A to match it to File > B without degrading audio quality how to achieve this? > > Anticipating a reply. > > Thanks in advance. > > /Warm Regards,/ > /Rohith M P/ > / /