Subject: | Re: calculate dB from PCM WAV file |
---|---|
From: | "Steve" pelikan45224 |
Date: | Tue Nov 3, 2009 5:53 am ((PST)) |
The samples in the file are from a wave so, even if the amplitude is high, many will be values near 0. You could do something like find the root mean square sqrt( (1/n) sum( (x_i)^2 ;i=0,n-1)) of consecutive values (1000, say) and then log-transform it. This worked pretty well for me a while back. I can send you the Java code if you like. Steve P --- In lisetserv neck <> wrote: > > Hi, > > I need to write a program to calculate the dB values from PCM wave files so > that I could do batch calculations for analysis. Could anyone help me how to > convert the raw sample values stored in WAV files to the dB(FS) values we > see on the meter of sound softwares such as Audacity? Taking log directly > does not seem to match... Thanks a lot for the help. > > Po-Jen > > > |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: calculate dB from PCM WAV file, Steve |
---|---|
Next by Date: | Re: Sony PCM-M10 first impressions, Rob Danielson |
Previous by Thread: | Re: calculate dB from PCM WAV file, Steve |
Next by Thread: | dsm microphones for sale, jk@jasonkahn.net |
Indexes: | [Date] [Thread] [Top] [All Lists] |
The University of NSW School of Computer and Engineering takes no responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the naturerecordists mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU