Mercurial > hg > aimc
annotate branches/carfac_cpp/src/CARFAC.cpp @ 538:81b01c88a257
Skeleton draft of CARFAC classes.
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Wed, 28 Mar 2012 07:12:22 +0000 |
parents | |
children | 750075ee8e3a |
rev | line source |
---|---|
Ulf@538 | 1 /* |
Ulf@538 | 2 * CARFAC.cpp |
Ulf@538 | 3 * |
Ulf@538 | 4 * Created on: 24 mar 2012 |
Ulf@538 | 5 * Author: ulha |
Ulf@538 | 6 */ |
Ulf@538 | 7 |
Ulf@538 | 8 #include "CARFAC.h" |
Ulf@538 | 9 #include "CAR.h" |
Ulf@538 | 10 #include "IHC.h" |
Ulf@538 | 11 #include "AGC.h" |
Ulf@538 | 12 |
Ulf@538 | 13 #include "CARFAC_common_typedefs.h" |
Ulf@538 | 14 |
Ulf@538 | 15 CARFAC::CARFAC(int fs = DEFAULT_FS, |
Ulf@538 | 16 CAR_parameters _CAR_params = CAR_parameters(), |
Ulf@538 | 17 IHC_parameters _IHC_params = IHC_parameters(), |
Ulf@538 | 18 AGC_parameters _AGC_params = AGC_parameters(), |
Ulf@538 | 19 float ERB_break_freq = DEFAULT_ERB_break_freq, |
Ulf@538 | 20 float ERB_Q = DEFAULT_ERB_Q){ |
Ulf@538 | 21 |
Ulf@538 | 22 CAR_params = _CAR_params; |
Ulf@538 | 23 IHC_params = _IHC_params; |
Ulf@538 | 24 AGC_params = _AGC_params; |
Ulf@538 | 25 |
Ulf@538 | 26 FloatArray pole_freqs; //TODO: do it, or push it down to CAR_coefficients level instead |
Ulf@538 | 27 CAR_coeffs = CAR_coefficients(CAR_params, fs, pole_freqs); |
Ulf@538 | 28 |
Ulf@538 | 29 // etc ... |
Ulf@538 | 30 } |
Ulf@538 | 31 |
Ulf@538 | 32 CARFAC::~CARFAC() { |
Ulf@538 | 33 // TODO Auto-generated destructor stub |
Ulf@538 | 34 } |