pytimbre.utilities.audio_filtering.ac_filter_design¶
- pytimbre.utilities.audio_filtering.ac_filter_design(fs)¶
AC_Filter_Design.py
Created on Mon Oct 18 19:27:36 2021
@author: Conner Campbell, Ball Aerospace
Description¶
coefficients_a, coeff_c = AC_Filter_Design(fs)
returns ba, aa, and bc, ac which are arrays of IRIR filter coefficients for A and C-weighting. fs is the sampling rate in Hz.
This program is a recreation of adsgn and cdsgn by Christophe Couvreur, see Matlab FEX ID 69.
- param fs:
sampling rate in Hz
- type fs:
double
- returns:
coefficients_a (list) – List of two numpy arrays, feedforward and feedback filter coefficients for A-weighting filter. Form of lists is [ba,aa]
Coeff_c (list) – List of two numpy arrays, feedforward and feedback filter coefficients for C-weighting filter. Form of lists is [bc,ac]
Code Dependencies
——-
This program requires the following python packages
scipy.signal, numpy
References
IEC/CD 1672: Electroacoustics-Sound Level Meters, Nov. 1996.
ANSI S1.4: Specifications for Sound Level Meters, 1983.
ACdsgn.m: Christophe Couvreur, Faculte Polytechnique de Mons (Belgium) couvreur@thor.fpms.ac.be