ReplayGain

Share your Audacity/Nyquist plug-ins here, or test drive the latest plug-ins submitted by Audacity users.

After testing a plug-in from this forum, please post feedback for the plug-in author.
steve
Site Admin
Posts: 81256
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: ReplayGain

Post by steve » Mon Aug 19, 2019 11:20 am

AndroYD wrote:
Mon Aug 19, 2019 9:44 am
I need to apply ReplayGain to wave files that are minimum 4 hours long and maximum 33 hours long
I'd suggest that you play those tracks in a media player that supports ReplayGain meta-data tags (or "Sound Check" if you use iTunes).
The excellent audio player foobar 2000 (https://www.foobar2000.org/) supports ReplayGain tags, and can scan very long tracks and create the tags.

Nyquist is 32-bit, so it can't address more than 4GB of data.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DJDemon
Posts: 88
Joined: Fri Jul 17, 2015 12:14 pm
Operating System: macOS 10.12 Sierra

Re: ReplayGain

Post by DJDemon » Mon Aug 19, 2019 2:51 pm

AndroYD wrote:
Mon Aug 19, 2019 9:44 am
… when applying the effect I see the progress bar filling up and everything seems to be working fine, but it will fail midway at some % point and not apply the effect at all,
I suggest to start with analyzing the track only. Next, apply the required gain change manually using the "Amplify" menu item. Does this work for you, as long as the tracks fits into Audacity at all?

ranila
Posts: 23
Joined: Mon Nov 25, 2019 7:50 pm
Operating System: Windows 7

Re: ReplayGain

Post by ranila » Sat Feb 22, 2020 9:32 am

Hi Steve,

it looks to me that ReplayGain doesn't work with tracks with sample rate of 32000Hz.
If I resample my track up to 44100Hz --> ReplayGain just works fine.

Regards Ralf

steve
Site Admin
Posts: 81256
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: ReplayGain

Post by steve » Sat Feb 22, 2020 12:40 pm

ranila wrote:
Sat Feb 22, 2020 9:32 am
it looks to me that ReplayGain doesn't work with tracks with sample rate of 32000Hz.
That's correct. The "Equal Loudness Curve" requires filtering up to nearly 20 kHz, which requires the sample rate to be at least double that.

Here's an updated version which throws an error if the sample rate is too low. I've set the limit to 44100, which is the first "standard" audio sample rate to support 20 kHz audio.
ReplayGain.ny
(3.12 KiB) Downloaded 2727 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ranila
Posts: 23
Joined: Mon Nov 25, 2019 7:50 pm
Operating System: Windows 7

Re: ReplayGain

Post by ranila » Sat Feb 22, 2020 4:15 pm

Thanx for clarification Steve!

Regards Ralf

Simon_W
Posts: 12
Joined: Thu Feb 11, 2016 1:36 pm
Operating System: Windows 10

Re: ReplayGain

Post by Simon_W » Thu Mar 12, 2020 12:49 pm

Hi Steve,
Would it be possible to add the option for stereo tracks to do it for each channel independently?

steve
Site Admin
Posts: 81256
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: ReplayGain

Post by steve » Thu Mar 12, 2020 1:31 pm

Simon_W wrote:
Thu Mar 12, 2020 12:49 pm
Would it be possible to add the option for stereo tracks to do it for each channel independently?
What problem are you wanting to solve?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Simon_W
Posts: 12
Joined: Thu Feb 11, 2016 1:36 pm
Operating System: Windows 10

Re: ReplayGain

Post by Simon_W » Thu Mar 12, 2020 7:54 pm

Hi Steve, I recorded a concert and had to put the microphones too close to the grand piano (because the public was sitting rather close to the pianist in a small church). So now my Philip Glass recording is louder on the left channel than on the right channel (although recording levels were the same). I noticed in Audacity you can normalize a file and ask to treat each channel independently in a stereo file (setting). So I was wondering if this was usefull to implement in the Replaygain plugin as well.

steve
Site Admin
Posts: 81256
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: ReplayGain

Post by steve » Thu Mar 12, 2020 8:29 pm

Simon_W wrote:
Thu Mar 12, 2020 7:54 pm
So I was wondering if this was usefull to implement in the Replaygain plugin as well.
Not really. The Replay algorithm has a special way of handling stereo tracks so that it can estimate the overall loudness of both channels combined. If the channels are process separately, then the result does not match the stereo replay gain loudness.

For your particular case, I'd suggest Normalizing first (with "Normalize stereo channels independently" selected), and then use Replay Gain.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Simon_W
Posts: 12
Joined: Thu Feb 11, 2016 1:36 pm
Operating System: Windows 10

Re: ReplayGain

Post by Simon_W » Thu Mar 12, 2020 9:31 pm

OK Steve, thanks very much for the advice!

Post Reply