Mercurial > hg > aimc
annotate include/CAR.h @ 581:2b23b5914bb9 carfac_cpp
(none)
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 11 Oct 2012 21:32:30 +0000 |
parents | 71e3794ececa |
children | daf1ca88fe20 |
rev | line source |
---|---|
Ulf@503 | 1 #ifndef CAR_H_ |
Ulf@503 | 2 #define CAR_H_ |
Ulf@503 | 3 |
Ulf@503 | 4 #include "CARFAC_common.h" |
Ulf@503 | 5 #include <cmath> |
Ulf@503 | 6 |
Ulf@503 | 7 const double kDefaultErbBreakFreq = 165.3; |
Ulf@503 | 8 const double kDefaultErbQ = 1000/(24.7*4.37); |
Ulf@503 | 9 |
Ulf@503 | 10 class CAR_parameters{ |
Ulf@503 | 11 public: |
Ulf@579 | 12 CAR_parameters(); |
Ulf@503 | 13 |
Ulf@503 | 14 float velocity_scale_; |
Ulf@503 | 15 float v_offset_; |
Ulf@503 | 16 float v2_corner_; |
Ulf@503 | 17 float v_damp_max_; |
Ulf@503 | 18 float min_zeta_; |
Ulf@503 | 19 float first_pole_theta_; |
Ulf@503 | 20 float zero_ratio_; |
Ulf@503 | 21 float high_f_damping_compression_; |
Ulf@503 | 22 float erb_per_step_; |
Ulf@503 | 23 float min_pole_hz_; |
Ulf@503 | 24 float erb_break_freq_; |
Ulf@503 | 25 float erb_q_; |
Ulf@503 | 26 }; |
Ulf@503 | 27 |
Ulf@503 | 28 class CAR_coefficients{ |
Ulf@503 | 29 public: |
Ulf@503 | 30 CAR_coefficients(CAR_parameters*, float, FloatArray); |
Ulf@503 | 31 |
Ulf@503 | 32 FloatArray r1_coeffs_; |
Ulf@503 | 33 FloatArray a0_coeffs_; |
Ulf@503 | 34 FloatArray c0_coeffs_; |
Ulf@503 | 35 FloatArray h_coeffs_; |
Ulf@503 | 36 FloatArray g0_coeffs_; |
Ulf@503 | 37 FloatArray zr_coeffs_; |
Ulf@503 | 38 |
Ulf@503 | 39 }; |
Ulf@503 | 40 |
Ulf@503 | 41 #endif /* CAR_H_ */ |