# HG changeset patch # User Ulf.Hammarqvist@gmail.com # Date 1333215382 0 # Node ID e5ae2ed4249c8e846b8c7d6e455e4c5ce67d128d # Parent e63fbe19b255336ecabe00e70b06c76849e51f44 diff -r e63fbe19b255 -r e5ae2ed4249c branches/carfac_cpp/src/CAR.h --- a/branches/carfac_cpp/src/CAR.h Sat Mar 31 17:24:08 2012 +0000 +++ b/branches/carfac_cpp/src/CAR.h Sat Mar 31 17:36:22 2012 +0000 @@ -16,8 +16,7 @@ zero_ratio_(sqrt(2)), high_f_damping_compression_(0.5), erb_per_step_(0.5), - min_pole_hz_(30) - { + min_pole_hz_(30){ // do nothing more } diff -r e63fbe19b255 -r e5ae2ed4249c branches/carfac_cpp/src/CARFAC.cpp --- a/branches/carfac_cpp/src/CARFAC.cpp Sat Mar 31 17:24:08 2012 +0000 +++ b/branches/carfac_cpp/src/CARFAC.cpp Sat Mar 31 17:36:22 2012 +0000 @@ -1,3 +1,5 @@ +#include + #include "CARFAC.h" #include "CAR.h" #include "IHC.h" @@ -25,6 +27,8 @@ } n_ch_ = pole_freqs_.size(); // STL specific + max_channels_per_octave_ = log(2) / log(pole_freqs_[0]/pole_freqs_[1]); + // replace with feeding this (as const ref) instead? Saves storing doubly car_coeffs_ = new CAR_coefficients(car_params_, fs_, pole_freqs_); ihc_coeffs_ = new IHC_coefficients(ihc_params_, fs_, n_ch_);