Mercurial > hg > aimc
annotate src/CAR.h @ 481:cad69634b411 carfac_cpp
(none)
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Wed, 28 Mar 2012 20:24:28 +0000 |
parents | 5def66bf228f |
children | 3673e3e67bab |
rev | line source |
---|---|
Ulf@477 | 1 #ifndef CAR_H_ |
Ulf@477 | 2 #define CAR_H_ |
Ulf@477 | 3 |
Ulf@477 | 4 #include "CARFAC_common_typedefs.h" |
Ulf@480 | 5 #include <math.h> |
Ulf@477 | 6 |
Ulf@477 | 7 class CAR_parameters { |
Ulf@477 | 8 public: |
Ulf@480 | 9 CAR_parameters(){ |
Ulf@480 | 10 velocity_scale = 0.2; |
Ulf@480 | 11 v_offset = 0.01; |
Ulf@480 | 12 v2_corner = 0.2; |
Ulf@480 | 13 v_damp_max = 0.01; |
Ulf@480 | 14 min_zeta = 0.10; |
Ulf@480 | 15 first_pole_theta = 0.085*PI; |
Ulf@480 | 16 zero_ratio = sqrt(2); |
Ulf@480 | 17 high_f_damping_compression = 0.5; |
Ulf@480 | 18 ERB_per_step = 0.5; |
Ulf@480 | 19 min_pole_Hz = 30; |
Ulf@480 | 20 } |
Ulf@480 | 21 virtual ~CAR_parameters(){} |
Ulf@479 | 22 |
Ulf@479 | 23 float velocity_scale; |
Ulf@479 | 24 float v_offset; |
Ulf@479 | 25 float v2_corner; |
Ulf@479 | 26 float v_damp_max; |
Ulf@479 | 27 float min_zeta; |
Ulf@479 | 28 float first_pole_theta; |
Ulf@479 | 29 float zero_ratio; |
Ulf@479 | 30 float high_f_damping_compression; |
Ulf@479 | 31 float ERB_per_step; |
Ulf@479 | 32 float min_pole_Hz; |
Ulf@479 | 33 |
Ulf@477 | 34 }; |
Ulf@477 | 35 |
Ulf@477 | 36 class CAR_coefficients{ |
Ulf@477 | 37 public: |
Ulf@478 | 38 CAR_coefficients(CAR_parameters*, float, FloatArray); |
Ulf@477 | 39 virtual ~CAR_coefficients(); |
Ulf@478 | 40 private: |
Ulf@481 | 41 CAR_coefficients(){} |
Ulf@477 | 42 }; |
Ulf@477 | 43 |
Ulf@477 | 44 #endif /* CAR_H_ */ |