Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Compressor RMS envelope follower

DSP related issues, mathematics, processing and techniques

Compressor RMS envelope follower

Postby Rocko » Mon Feb 12, 2018 11:29 am

Hi,

Working on an RMS compressor.
To test if the envelope follower is correct, I injected a 1 KHz sine wave tone at (-12 dBFS).
The envelope follower reads (-15 dBFS) which (I guess) is expected due to 'crest fector' of sine waves which is (-3 db).
That means that the 'distance' between a peak and RMS of a sine wave is (-3 dB).

So, is all of this correct? Should I expect an RMS compressor to 'read' a sine wave signal at 3 db lower than its rating?
Had I used professional measuring gear (generator and analyzer) - and dialed in a sine wave signal, will the 'knee' of the RMS compressor run at (-3 db) lower than intended?
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Compressor RMS envelope follower

Postby KG_is_back » Mon Feb 12, 2018 1:00 pm

yes, that is correct. RMS is short for root mean square, which means you square each value, sum them all up, divide by number of values and take square root or in other words is is the square root of arithmetic mean of squares. Square of a sin(x) is 0.5+0.5*sin(x). Since sin(x) is symmetric, the average value is 0.5. Square root of that is about 0.702 which is equivalent to -3.01dB.
In fact, this -3dB difference between peak and RMS is generally true on average. The phases of the individual harmonics must be specially aligned to deviate from this average - the edge cases being square wave, where the phases are aligned in such a way that peak and RMS equal and impulse where the phases are so aligned that they cancel out everywhere except one point.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Compressor RMS envelope follower

Postby tulamide » Mon Feb 12, 2018 2:55 pm

In addition to KG:

For sine waves (and only for them) there's a law. It says that the RMS of a sine is always

(1 / squareroot of 2) * amplitude

So, there's 0.707 again for an amplitude of 1 (I think KG meant 0.707).
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to DSP

Who is online

Users browsing this forum: No registered users and 29 guests