A-weighting Sound Filter
25 views (last 30 days)
Show older comments
I am trying to obtain an A-weighted sound power level (SPL) in dB by using the fdesign.audioweighting function available in the DSP System toolbox. My beginning data are pressure values from multiple microphones which recorded the data at 25.6 kHz. I know all of the equations to calculate unweighted SPL and my calculated values are correct for that case. However, I have tried applying the A-weighting filter at multiple points in the conversion of data from pressure to SPL with no success. I have also tried calculating an FFT and applying the filter to the data in the frequency domain. All of the help descriptions and tutorials end at using fvtool to visualize the filter, but do not describe how to implement the filter on real data. Any insights would be extremely helpful.
Thanks in advance.
2 Comments
Daniel Shub
on 8 Nov 2012
Can you post some example code showing what you are trying, what you expect, and what you get.
Answers (1)
Daniel Shub
on 8 Nov 2012
Your example code is for a single period of a sine wave. The filter you design, however, rings for a period of time. You want to look at the long term average. Changing your definition of Ns to
Ns = 512*1e3;
I think gives you what you would expect ...
2 Comments
Davide
on 4 Sep 2013
i do not know i can do this, if not please forget this post :) anyway, i've a issue on a-weightening, you can find it here http://www.mathworks.it/matlabcentral/answers/85788-a-weighting-filter-to-lookup-table can you look at this? thank you, davide
See Also
Categories
Find more on Measurements and Spatial Audio in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!