Mercurial > hg > aimc
annotate src/CARFAC.h @ 490:463240c9e104 carfac_cpp
comments
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Sat, 07 Apr 2012 09:59:35 +0000 |
parents | d56da20c09ae |
children | 24828350536a |
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@487 | 16 static float ERB_Hz(float); |
Ulf@486 | 17 static float ERB_Hz(float, float, float); |
Ulf@484 | 18 |
Ulf@484 | 19 float fs_; |
Ulf@484 | 20 float max_channels_per_octave_; |
Ulf@477 | 21 |
Ulf@483 | 22 CAR_coefficients* car_coeffs_; |
Ulf@483 | 23 CAR_parameters* car_params_; |
Ulf@477 | 24 |
Ulf@483 | 25 IHC_coefficients* ihc_coeffs_; |
Ulf@483 | 26 IHC_parameters* ihc_params_; |
Ulf@477 | 27 |
Ulf@484 | 28 int n_ch_; |
Ulf@484 | 29 FloatArray pole_freqs_; |
Ulf@484 | 30 |
Ulf@483 | 31 AGC_coefficients* agc_coeffs_; |
Ulf@483 | 32 AGC_parameters* agc_params_; |
Ulf@484 | 33 |
Ulf@484 | 34 int n_ears_; |
Ulf@477 | 35 }; |
Ulf@477 | 36 |
Ulf@477 | 37 #endif /* CARFAC_H_ */ |