Mercurial > hg > aimc
comparison branches/carfac_cpp/src/CARFAC.cpp @ 547:cffa9e98eb45
stubbed CAR_coefficients constructor
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Sat, 31 Mar 2012 18:15:17 +0000 |
parents | e5ae2ed4249c |
children | ff12d0432d9c |
comparison
equal
deleted
inserted
replaced
546:e5ae2ed4249c | 547:cffa9e98eb45 |
---|---|
19 ihc_params_ = ihc_params; | 19 ihc_params_ = ihc_params; |
20 agc_params_ = agc_params; | 20 agc_params_ = agc_params; |
21 | 21 |
22 float pole_hz = car_params->first_pole_theta_* fs / (2*kPi); | 22 float pole_hz = car_params->first_pole_theta_* fs / (2*kPi); |
23 while (pole_hz > car_params->min_pole_hz_){ | 23 while (pole_hz > car_params->min_pole_hz_){ |
24 pole_freqs_.push_back(pole_hz); // STL specific | 24 pole_freqs_.push_back(pole_hz); // TODO: STL specific |
25 pole_hz = pole_hz - car_params->erb_per_step_ * | 25 pole_hz = pole_hz - car_params->erb_per_step_ * |
26 ERB_Hz(pole_hz, erb_break_freq, erb_q); | 26 ERB_Hz(pole_hz, erb_break_freq, erb_q); |
27 } | 27 } |
28 n_ch_ = pole_freqs_.size(); // STL specific | 28 n_ch_ = pole_freqs_.size(); |
29 | 29 |
30 max_channels_per_octave_ = log(2) / log(pole_freqs_[0]/pole_freqs_[1]); | 30 max_channels_per_octave_ = log(2) / log(pole_freqs_[0]/pole_freqs_[1]); |
31 | 31 |
32 // replace with feeding this (as const ref) instead? Saves storing doubly | 32 // replace with feeding this (as const ref) instead? Saves storing doubly |
33 car_coeffs_ = new CAR_coefficients(car_params_, fs_, pole_freqs_); | 33 car_coeffs_ = new CAR_coefficients(car_params_, fs_, pole_freqs_); |