bogdank wrote:
> Vladimir wrote:
>
>
>
>>How did you get your filter coefficients?
>
>
> All I can say is that I optimized the zero and pole locations to fit the
> A-weighting frequency response. I paid special attention to the following:
>
> 1. choice of frequencies used in sampling of the frequency response
> 2. constraints on locations of poles and zeros
> 3. choice of objective function used in optimization
> 4. choice of optimization algorithm
>
> I cannot disclose further details.
Secret voodoo magic.
>>It would be straightforward if the sample rate is set, say, at 192kHz.
>>The hard part is the approximation in the vicinity of the Nyquist
>>frequency; this is where the filter order starts to increase.
>
> Not as a general rule. That would depend on the choices you make.
The lower is F/Fsa, the closer is the behavior of the digital filter to
the analog prototype, the more applicable are the standard methods like
Bilinear or Impulse Invariant.
> It would
> also depend on the type of spectral response. The A-weighting has nothing
> special about Nyquist for 48kHz (or any other lower sampling rate).
Oh, yes. A-weighting has something special about the high frequencies,
especially as there could be a lot of shaped noise there.
> Since this type of filter is often used only for power measurement, the
> phase response is not an issue.
Incorrect assertion.
Phase response does matter since it affects the result of the
measurement. Especially as the signal may contain the correlated
components. If you pretend to model the analog filter to the accuracy of
0.01 dB, that implies the error vector (module, phase) is within 1e-3
from the analog prototype. So, back to the drawing board.
> The only real concern is the quantization (in case of fixed point
> implementation) and possibility of getting poles to be kicked out of the
> unit circle in the process. In that case you need to spend additional work
> on getting the proper filter structure and possibly convert it into
> bi-quads and/or lattice...
That is a minor technical problem. BTW, the original A-filter has the
real poles, so the stability should not be an issue.
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com