The Church Media Community
Equipping You to Communicate Effectively
support CMN & share a
library of 19K+ images, videos, etc
Go Pro!
 
Go Back   The Church Media Community > Audio > Audio Signal Processing
Forgot Password?
                          Register

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old Friday, March 16th, 2012, 12:42 AM
ksr ksr is offline
New Church Media Member

 
 Join Date: Mar 2012 
 Last Online: Tuesday, April 10th, 2012 
how to calculate Rms value of a signal having more than two frequencies?

Hi guys,

I want to know how to calculate from a pcm file the following things...

1. Rms value of a signal when it is having single frequency and also multiple frequencies .
2. Rms value of harmonic components of a signal when it is having single frequency and also multiple frequencies .
3 Rms value of noise..

By using above values i want to calculate SNR, THD , THD+N.

Thanks in Advance
Reply With Quote Start a New Topic From This Comment
  #2 (permalink)  
Old Friday, March 16th, 2012, 10:20 PM
New Church Media Member

 
 Join Date: Feb 2012 
 Last Online: Saturday, April 28th, 2012 
Quote:
Originally Posted by ksr View Post
Hi guys,

I want to know how to calculate from a pcm file the following things...

1. Rms value of a signal when it is having single frequency and also multiple frequencies .
2. Rms value of harmonic components of a signal when it is having single frequency and also multiple frequencies .
3 Rms value of noise..

By using above values i want to calculate SNR, THD , THD+N.

Thanks in Advance
Take the linear value (not log like dB) of each sample. Square each sample value. Average all the squared values. Take the square root of the result. You have taken the Root, of the Mean, of the Squares, or RMS.

While you can use a simple RMS to determine the unweighted Signal to Noise Ratio (SNR), it is more common to weight the noise using some curve such as A-weighting to adjust for the fact that the ear is not equally sensitive to all frequencies.

To measure THD+N the signal must be a pure sine wave going into the Device Under Test (DUT). Take the output of the DUT and apply a very narrow notch filter that takes out the input frequency. What is left is the THD+N which can be measured with a RMS detector.

To just measure THD is a bit more complex. You need to use a narrow select filter rather than a notch filter, and individually measure the energy in each harmonic, then compare the summed energy of all the harmonics with that of the fundamental. THD (and THD+N) is expressed in percent, and it is possible to have THD in excess of 100% if the harmonics have greater energy than the fundamental.
Reply With Quote Start a New Topic From This Comment
  #3 (permalink)  
Old Tuesday, March 20th, 2012, 01:07 AM
ksr ksr is offline
New Church Media Member

 
 Join Date: Mar 2012 
 Last Online: Tuesday, April 10th, 2012 
SNR, THD+N, THD

Thanks for your reply bro..can you suggest any book for knowing this concepts deeply??
Reply With Quote Start a New Topic From This Comment
  #4 (permalink)  
Old Monday, March 26th, 2012, 12:35 AM
New Church Media Member

 
 Join Date: Feb 2012 
 Last Online: Saturday, April 28th, 2012 
Quote:
Originally Posted by ksr View Post
Thanks for your reply bro..can you suggest any book for knowing this concepts deeply??
It is hard to point to any one book. There is a lot of good stuff you can download for free from here:

http://ap.com/download/whitepapers

The Handbook for Sound Engineers, Fourth Edition has some good stuff in it (I wrote two of the chapters).

There are tons of AES Journal articles on audio measurements.
Reply With Quote Start a New Topic From This Comment
  #5 (permalink)  
Old Thursday, March 29th, 2012, 10:28 PM
ksr ksr is offline
New Church Media Member

 
 Join Date: Mar 2012 
 Last Online: Tuesday, April 10th, 2012 
Thanks bro.....
Reply With Quote Start a New Topic From This Comment
  #6 (permalink)  
Old Wednesday, April 4th, 2012, 03:46 PM
Arlin's Avatar
Church Media Regular

 
 Join Date: Dec 2003 
 Last Online: Yesterday 
If you understand algebraic notation, attached are the formulas for finding RMS from a discrete time history signal & calculating total RMS from the RMS of multiple signals when combined.
This is taken straight from wikipedia here: http://en.wikipedia.org/wiki/Root_mean_square
Attached Images
File Type: jpg RMS from Time History.jpg‎ (4.0 KB, 0 views)
File Type: jpg Summing RMS values.jpg‎ (5.0 KB, 1 views)
Reply With Quote Start a New Topic From This Comment
Reply

  The Church Media Community > Audio > Audio Signal Processing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:



Add to Google


Register Now for FREE!
Our records show you have not yet registered to our community. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Agree to forum rules 


All times are GMT -6. The time now is 02:50 AM.

   
 
© 1995-2008, ChurchMedia™, ChurchMedia LLC

SEO by vBSEO 3.1.0