Mercurial > hg > aimc
annotate include/CARFAC.h @ 581:2b23b5914bb9 carfac_cpp
(none)
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 11 Oct 2012 21:32:30 +0000 |
parents | 1fbe1ac389b0 |
children | daf1ca88fe20 |
rev | line source |
---|---|
Ulf@503 | 1 #ifndef CARFAC_H_ |
Ulf@503 | 2 #define CARFAC_H_ |
Ulf@503 | 3 |
Ulf@503 | 4 #include "CAR.h" |
Ulf@503 | 5 #include "IHC.h" |
Ulf@503 | 6 #include "AGC.h" |
Ulf@503 | 7 #include "Ear.h" |
Ulf@503 | 8 #include <vector> |
Ulf@503 | 9 |
Ulf@503 | 10 const double kDefaultFs = 22050; |
Ulf@503 | 11 |
Ulf@503 | 12 class CARFAC{ |
Ulf@503 | 13 public: |
Ulf@503 | 14 CARFAC(int, CAR_parameters*, IHC_parameters*, AGC_parameters*, int); |
Ulf@503 | 15 |
Ulf@503 | 16 float fs_; |
Ulf@503 | 17 |
Ulf@503 | 18 int n_ch_; // these three, push down to ear level? |
Ulf@503 | 19 float max_channels_per_octave_; |
Ulf@503 | 20 FloatArray pole_freqs_; |
Ulf@503 | 21 |
Ulf@503 | 22 int n_ears_; |
Ulf@503 | 23 std::vector<Ear> ears_; |
Ulf@503 | 24 |
Ulf@503 | 25 private: |
Ulf@503 | 26 |
Ulf@503 | 27 }; |
Ulf@503 | 28 |
Ulf@503 | 29 #endif /* CARFAC_H_ */ |