Mercurial > hg > aimc
changeset 540:0972b3161871
stubilub lolipop
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Wed, 28 Mar 2012 16:44:46 +0000 |
parents | 750075ee8e3a |
children | da49bc37a6dd |
files | branches/carfac_cpp/src/AGC.h branches/carfac_cpp/src/CAR.h branches/carfac_cpp/src/CARFAC_common_typedefs.h branches/carfac_cpp/src/IHC.h |
diffstat | 4 files changed, 34 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/branches/carfac_cpp/src/AGC.h Wed Mar 28 16:08:11 2012 +0000 +++ b/branches/carfac_cpp/src/AGC.h Wed Mar 28 16:44:46 2012 +0000 @@ -1,10 +1,22 @@ #ifndef AGC_H_ #define AGC_H_ +#include "CARFAC_common_typedefs.h" + class AGC_parameters { public: AGC_parameters(); virtual ~AGC_parameters(); + + float n_stages; + FloatArray time_constants; + float AGC_stage_gain; + FloatArray decimation; + FloatArray AGC1_scales; + FloatArray AGC2_scales; + float detect_scale; + float AGC_mix_coeff; + }; class AGC_coefficients {
--- a/branches/carfac_cpp/src/CAR.h Wed Mar 28 16:08:11 2012 +0000 +++ b/branches/carfac_cpp/src/CAR.h Wed Mar 28 16:44:46 2012 +0000 @@ -14,6 +14,18 @@ public: CAR_parameters(); virtual ~CAR_parameters(); + + float velocity_scale; + float v_offset; + float v2_corner; + float v_damp_max; + float min_zeta; + float first_pole_theta; + float zero_ratio; + float high_f_damping_compression; + float ERB_per_step; + float min_pole_Hz; + }; class CAR_coefficients{
--- a/branches/carfac_cpp/src/CARFAC_common_typedefs.h Wed Mar 28 16:08:11 2012 +0000 +++ b/branches/carfac_cpp/src/CARFAC_common_typedefs.h Wed Mar 28 16:44:46 2012 +0000 @@ -5,9 +5,8 @@ typedef std::vector<float> FloatArray; -#define DEFAULT_ERB_break_freq 228.833 -#define DEFAULT_ERB_Q 9.2645 - -#define DEFAULT_FS 44100 +#define DEFAULT_ERB_break_freq 165.3 +#define DEFAULT_ERB_Q 1000/(24.7*4.37) +#define DEFAULT_FS 22050 #endif /* CARFAC_COMMON_TYPEDEFS_H_ */
--- a/branches/carfac_cpp/src/IHC.h Wed Mar 28 16:08:11 2012 +0000 +++ b/branches/carfac_cpp/src/IHC.h Wed Mar 28 16:44:46 2012 +0000 @@ -1,10 +1,17 @@ #ifndef IHC_H_ #define IHC_H_ +// not sure how to best deal with the "three style" IHC - ulha class IHC_parameters { public: IHC_parameters(); virtual ~IHC_parameters(); + + float tau_lpf; + float tau1_out; + float tau1_in; + float tau2_out; + float tau2_in; }; class IHC_coefficients {