Mercurial > hg > aimc
annotate branches/carfac_cpp/src/CARFAC.h @ 559:89b1fe5de60f
Simplify AGC_Step, moving multi-aural cross coupling to new function CARFAC_Cross_Couple
author | dicklyon@google.com |
---|---|
date | Tue, 10 Apr 2012 05:40:18 +0000 |
parents | 4de3bebec3d6 |
children |
rev | line source |
---|---|
Ulf@538 | 1 #ifndef CARFAC_H_ |
Ulf@538 | 2 #define CARFAC_H_ |
Ulf@538 | 3 |
Ulf@538 | 4 #include "CAR.h" |
Ulf@538 | 5 #include "IHC.h" |
Ulf@538 | 6 #include "AGC.h" |
Ulf@538 | 7 |
Ulf@545 | 8 const double kDefaultFs = 22050; |
Ulf@545 | 9 |
Ulf@539 | 10 class CARFAC{ |
Ulf@538 | 11 public: |
Ulf@555 | 12 CARFAC(int, CAR_parameters*, IHC_parameters*, AGC_parameters*); |
Ulf@544 | 13 virtual ~CARFAC(); |
Ulf@547 | 14 static float ERB_Hz(float, float, float); |
Ulf@545 | 15 |
Ulf@545 | 16 float fs_; |
Ulf@545 | 17 float max_channels_per_octave_; |
Ulf@538 | 18 |
Ulf@544 | 19 CAR_coefficients* car_coeffs_; |
Ulf@544 | 20 CAR_parameters* car_params_; |
Ulf@538 | 21 |
Ulf@544 | 22 IHC_coefficients* ihc_coeffs_; |
Ulf@544 | 23 IHC_parameters* ihc_params_; |
Ulf@538 | 24 |
Ulf@545 | 25 int n_ch_; |
Ulf@545 | 26 FloatArray pole_freqs_; |
Ulf@545 | 27 |
Ulf@544 | 28 AGC_coefficients* agc_coeffs_; |
Ulf@544 | 29 AGC_parameters* agc_params_; |
Ulf@545 | 30 |
Ulf@545 | 31 int n_ears_; |
Ulf@538 | 32 }; |
Ulf@538 | 33 |
Ulf@538 | 34 #endif /* CARFAC_H_ */ |