annotate branches/carfac_cpp/src/CARFAC.h @ 547:cffa9e98eb45

stubbed CAR_coefficients constructor
author Ulf.Hammarqvist@gmail.com
date Sat, 31 Mar 2012 18:15:17 +0000
parents e63fbe19b255
children ff12d0432d9c
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 kDefaultErbBreakFreq = 165.3;
Ulf@545 9 const double kDefaultErbQ = 1000/(24.7*4.37);
Ulf@545 10 const double kDefaultFs = 22050;
Ulf@545 11
Ulf@539 12 class CARFAC{
Ulf@538 13 public:
Ulf@544 14 CARFAC(int, CAR_parameters*, IHC_parameters*, AGC_parameters*, float, float);
Ulf@544 15 virtual ~CARFAC();
Ulf@547 16 static float ERB_Hz(float, float, float);
Ulf@545 17
Ulf@545 18 float fs_;
Ulf@545 19 float max_channels_per_octave_;
Ulf@538 20
Ulf@544 21 CAR_coefficients* car_coeffs_;
Ulf@544 22 CAR_parameters* car_params_;
Ulf@538 23
Ulf@544 24 IHC_coefficients* ihc_coeffs_;
Ulf@544 25 IHC_parameters* ihc_params_;
Ulf@538 26
Ulf@545 27 int n_ch_;
Ulf@545 28 FloatArray pole_freqs_;
Ulf@545 29
Ulf@544 30 AGC_coefficients* agc_coeffs_;
Ulf@544 31 AGC_parameters* agc_params_;
Ulf@545 32
Ulf@545 33 int n_ears_;
Ulf@538 34 };
Ulf@538 35
Ulf@538 36 #endif /* CARFAC_H_ */