RMS Normalize

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.

RMS Normalize

Permanent link to this post Posted by steve » Fri Mar 31, 2017 3:58 pm

This plug-in is similar to Audacity's Normalize effect, except that rather than amplifying to a specified peak level, it amplifies to a specified RMS level.

RMS is the abbreviation for "Root Mean Square" and is a kind of average sound level. The RMS level (colored lighter blue in Audacity) is generally a better estimate of "loudness" than peak level (there is no absolute measure for "loudness" as what is loud for one person may not be loud for another - loudness is subjective).

Controls:
  • Target RMS level (dB): This sets what the RMS level will be after processing (default -18 dB).
  • Normalize stereo channels: Choice: Independently or Linked stereo (default Independently).
    When processing a stereo track, if "Independently" is selected, then both left and right channels will be normalized to the same RMS level. This may alter the stereo balance, but will tend to make left and right channel the same overall loudness.
    If "Linked stereo" is selected, then both channels are amplified by the same amount. The overall stereo level will be as specified by the Target level, but the channels may have different RMS levels if the RMS levels were different before normalizing. This option preserves the original left/right stereo balance.

Limitations:
Preview is not available in this effect because the plug-in cannot predict what the overall level will be before it has analyzed the entire selection.
Requires Audacity 2.1.3 or later.

rms-normalize.ny
(810 Bytes) Downloaded 357 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45041
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: RMS Normalize

Permanent link to this post Posted by Trebor » Fri Mar 31, 2017 7:05 pm

steve wrote:... Requires Audacity 2.1.3 or later.
rms-normalize.ny

I can confirm it does not work on 2.1.2.
Trebor
 
Posts: 3948
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: RMS Normalize

Permanent link to this post Posted by Tim Lookingbill » Fri Mar 31, 2017 10:19 pm

Is it suppose to clip like regular "Amplify"?

If it is, it's working in 2.1.3 on Mac OS 10.6.8.

Audibly I'm not hearing a difference between "Amplify vs RMS Normalize" applying the same +3db above current-15dbRMS (according to Wave Stats) doing a Solo/Mute comparison on a duped waveform where I'm seeing "Amplify" produces slightly less clipping.
Tim Lookingbill
 
Posts: 112
Joined: Wed Aug 13, 2014 7:20 am
Operating System: OS X 10.6 Snow Leopard or earlier

Re: RMS Normalize

Permanent link to this post Posted by steve » Sat Apr 01, 2017 10:03 am

Tim Lookingbill wrote:Is it suppose to clip like regular "Amplify"?

I don't know what you mean.

If you amplify too much (above 0 dB), by any means, then it will be distorted (clipped) on playback.

Provided that the audio tracks are 32-bit float format (default), amplifying a track beyond 0 dB is not "fatal". 32-bit float format does not clip at 0 dB, but sound cards are 16 or 24 bit integer, so sound cards clip at 0 dB on play / record.

Tim Lookingbill wrote:Audibly I'm not hearing a difference between "Amplify vs RMS Normalize" applying the same +3db above current-15dbRMS (according to Wave Stats) doing a Solo/Mute comparison on a duped waveform where I'm seeing "Amplify" produces slightly less clipping.

Applying +3 dB by any means should produce the same (identical) result.

What this effect does is:
1) Ask Audacity what the RMS level of the selection is.
2) Do a quick calculation: gain = target / rms
3) Amplify the selection by "gain".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45041
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: RMS Normalize

Permanent link to this post Posted by Tim Lookingbill » Sun Apr 02, 2017 2:28 am

Steve, I appreciate your work on this and other plugins you've made.

Would just like to know when or in what circumstances one would use this over Amplify or Normalize?

Why would someone want to Normalize according to RMS when there's very little audible difference over using the other mentioned effects?

Could you give a setting where I would here a difference?

The only time I can hear a difference is when using a Limiter where it gets louder and the RMS (light blue) portion of the waveform becomes equal or larger in thickness than the dark blue peak portion.

I understand the point about clipping in 32bit Floating point not doing any damage to the waveform. So approaching it from that angle if I used RMS Normalize to REALLY make the waveform loud just like Amplify and then use Amplify to get rid of the clipping, I'm assuming there would be some sort of audible difference but I'm not sure what to listen for.
Tim Lookingbill
 
Posts: 112
Joined: Wed Aug 13, 2014 7:20 am
Operating System: OS X 10.6 Snow Leopard or earlier

Re: RMS Normalize

Permanent link to this post Posted by kozikowski » Sun Apr 02, 2017 2:59 am

when or in what circumstances one would use this over Amplify or Normalize?

AudioBook generation. AudioBook submission has three restictions: RMS, Peak and Noise. Peak and Noise are no big deal, we've had tools to manage those for a long time. Not so RMS.

I've been using an early version of this tool successfully for a while now (to help readers). This new one is a formalized version.

Assuming a reasonable reading style and recording success, apply RMS Normalize to -18dB (or -19dB. The earlier version used -20dB). It's not unusual for this to push peaks over specification and sometimes over clipping. Apply gentle limiter and given 32-floating's resistance to clipping damage, you're done.

RMS show loudness between -18dB and -23dB, peaks not to exceed -3dB and given graceful recording style in a quiet room, broadband noise not to exceed -60dB.

There are other, older ways to achieve these values but they're convoluted and difficult to apply and they fall apart almost immediately with home recording styles and difficulties.

While this will seem like a specialist application, it's an application that a remarkable number of people engage in.

Koz
kozikowski
Forum Staff
 
Posts: 38253
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: RMS Normalize

Permanent link to this post Posted by Tim Lookingbill » Sun Apr 02, 2017 5:53 am

Thanks, Koz. That makes sense.

I forgot about AudioBook application about which there have been many lengthy discussions here due to these strict by the db numbers audio spec restrictions. I believe I might have set in on one several years back that used the convoluted and difficult to apply old way to stay within specs.

It was grueling reading. I think it got over ten pages.
Tim Lookingbill
 
Posts: 112
Joined: Wed Aug 13, 2014 7:20 am
Operating System: OS X 10.6 Snow Leopard or earlier

Re: RMS Normalize

Permanent link to this post Posted by steve » Sun Apr 02, 2017 11:09 am

Tim Lookingbill wrote:Would just like to know when or in what circumstances one would use this over Amplify or Normalize?
Why would someone want to Normalize according to RMS when there's very little audible difference over using the other mentioned effects?


Here is a sequence of 5 short generated sounds, separated by 1/2 second silence.

-12dB_rms.wav
(603.06 KiB) Downloaded 28 times


Assuming that you listen on half decent speakers or better, I expect that you would agree that they all sound roughly the same loudness. (Laptop speakers fall down badly on this test because they have such limited, and non-linear frequency response). I'm not suggesting that they are exactly the same loudness - just the same ballpark. Each of the 5 sounds has been individually normalized to -12 dB rms.


This second sequence is the same sounds, but in this case each sound was normalized to -3 dB peak.

-3dB_peak.wav
(603.06 KiB) Downloaded 28 times


Notice in particular that the final sound is much louder than the noise that precedes it.


Whether producing an audiobook, a podcast, a compilation album, a radio show,... there are many cases where you may want multiple different tracks to be around the same loudness. Peak level is often a very poor measure of loudness. RMS level is certainly not perfect, but it generally gives a much better indication of loudness than peak.

There are better ways to measure loudness, such as LKFS, ReplayGain, iTunNORM, and many others. Advantages of RMS measurement are that everyone in the audio business understands it, it's been clearly defined as a scientific measure for aeons, and it is simple to measure.

Let's say that I'm making a podcast and that you are making a short article to go into it, but it's all very last minute so I want you to send me a recording that I can just drop into the show and run it. Obviously I will need the peak level to be below 0 dB (and allow a bit of headroom for transcoding), and I'll want it to be about the same loudness as the rest of the show. If the rest of the show is around -17 dB rms. and your article is around -17 dB rms, then we're probably close enough.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45041
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: RMS Normalize

Permanent link to this post Posted by Tim Lookingbill » Sun Apr 02, 2017 8:17 pm

That's very revealing, Steve. Thank you so much for your time demonstrating this.

I'm not suggesting that they are exactly the same loudness - just the same ballpark. Each of the 5 sounds has been individually normalized to -12 dB rms.


Just to see what editing this way does to the original 5 sounds, what loudness level did they start out at?

The reason I ask is the first tone of the -3db Peak showing clipping seemed overly crispy over the other tones even in both versions. This is important for me to know because this is the kind of nuanced detail/texture I fight but don't hear applying EQ to bring out highlights at normal volume levels listening through decent headphones but becomes pronounced by raising the analog volume sliders within the OS. Limiters tend to slightly compress this annoying crispyness to make it sound stunted and artificial.

Do you think this RMS Normalize acts closer to the behavior of analog volume increases?

Thanks again, Steve. Very educational and helps me understand this tool when I'm trying to make tiny sounding remastered '70's pop music sound bigger than life.

This is a typical '70's pop song that shows what analog volume increase does to music that is suspiciously recorded or mastered at a higher pitch... Leo Sayer's "Long Tall Glasses"...

https://www.youtube.com/watch?v=mCiFm31O7AY

Note the overly crispy sounding snare drums at the beginning. This one I was successful at making sound bigger than life but I had to drop the pitch. If I raised the volume on the original as heard in the YouTube video it destroys my ears both on the headphones and in my car. Is this an RMS issue?
Tim Lookingbill
 
Posts: 112
Joined: Wed Aug 13, 2014 7:20 am
Operating System: OS X 10.6 Snow Leopard or earlier

Re: RMS Normalize

Permanent link to this post Posted by steve » Sun Apr 02, 2017 11:47 pm

Tim Lookingbill wrote:The reason I ask is the first tone of the -3db Peak showing clipping

What do you mean "showing clipping"? There is no clipping in either of the files that I posted.

Tim Lookingbill wrote:Just to see what editing this way does to the original 5 sounds, what loudness level did they start out at?

It doesn't matter.

Tim Lookingbill wrote:Do you think this RMS Normalize acts closer to the behavior of analog volume increases?

Closer than what?
Amplification of a digital signal is the same however it is done - they just scale the waveform to a new vertical size. Technically, they are multiplying each sample value by a specified amount. The only difference is in how the "specified amount" is determined.
For the Amplify effect, the "specified amount" is set directly by the user as the "Amplification (dB)" amount.
For the Normalize effect, the "specified amount" is calculated to make the new peak level reach the "Normalize maximum amplitude to" level.
For the RMS Normalize effect, the "specified amount" is calculated to make the RMS level reach the specified level.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45041
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Next

Return to New Plug-Ins



Who is online

Users browsing this forum: No registered users and 0 guests