Mercurial > hg > aimc
annotate src/CARFAC.h @ 484:715fc47a965e carfac_cpp
stubbed some more, and tidying
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Sat, 31 Mar 2012 17:24:08 +0000 |
parents | 3673e3e67bab |
children | c6bd1d58e72e |
rev | line source |
---|---|
Ulf@477 | 1 #ifndef CARFAC_H_ |
Ulf@477 | 2 #define CARFAC_H_ |
Ulf@477 | 3 |
Ulf@477 | 4 #include "CAR.h" |
Ulf@477 | 5 #include "IHC.h" |
Ulf@477 | 6 #include "AGC.h" |
Ulf@477 | 7 |
Ulf@484 | 8 const double kDefaultErbBreakFreq = 165.3; |
Ulf@484 | 9 const double kDefaultErbQ = 1000/(24.7*4.37); |
Ulf@484 | 10 const double kDefaultFs = 22050; |
Ulf@484 | 11 |
Ulf@478 | 12 class CARFAC{ |
Ulf@477 | 13 public: |
Ulf@483 | 14 CARFAC(int, CAR_parameters*, IHC_parameters*, AGC_parameters*, float, float); |
Ulf@483 | 15 virtual ~CARFAC(); |
Ulf@484 | 16 static float ERB_Hz(float,float,float); |
Ulf@484 | 17 |
Ulf@484 | 18 float fs_; |
Ulf@484 | 19 float max_channels_per_octave_; |
Ulf@477 | 20 |
Ulf@483 | 21 CAR_coefficients* car_coeffs_; |
Ulf@483 | 22 CAR_parameters* car_params_; |
Ulf@477 | 23 |
Ulf@483 | 24 IHC_coefficients* ihc_coeffs_; |
Ulf@483 | 25 IHC_parameters* ihc_params_; |
Ulf@477 | 26 |
Ulf@484 | 27 int n_ch_; |
Ulf@484 | 28 FloatArray pole_freqs_; |
Ulf@484 | 29 |
Ulf@483 | 30 AGC_coefficients* agc_coeffs_; |
Ulf@483 | 31 AGC_parameters* agc_params_; |
Ulf@484 | 32 |
Ulf@484 | 33 int n_ears_; |
Ulf@477 | 34 }; |
Ulf@477 | 35 |
Ulf@477 | 36 #endif /* CARFAC_H_ */ |