comparison src/Modules/BMM/ModuleGammatone.cc @ 121:3cdaa81c3aca

- Massive refactoring to make module tree stuff work. In theory we now support configuration files again. The graphics stuff is untested as yet.
author tomwalters
date Mon, 18 Oct 2010 04:42:28 +0000
parents c5f5e9569863
children 9fcf55c040fe
comparison
equal deleted inserted replaced
120:89e4facffd93 121:3cdaa81c3aca
50 state_1_.resize(num_channels_); 50 state_1_.resize(num_channels_);
51 state_2_.resize(num_channels_); 51 state_2_.resize(num_channels_);
52 state_3_.resize(num_channels_); 52 state_3_.resize(num_channels_);
53 state_4_.resize(num_channels_); 53 state_4_.resize(num_channels_);
54 for (int i = 0; i < num_channels_; ++i) { 54 for (int i = 0; i < num_channels_; ++i) {
55 state_1_[i].clear();
55 state_1_[i].resize(3, 0.0f); 56 state_1_[i].resize(3, 0.0f);
57 state_2_[i].clear();
56 state_2_[i].resize(3, 0.0f); 58 state_2_[i].resize(3, 0.0f);
59 state_3_[i].clear();
57 state_3_[i].resize(3, 0.0f); 60 state_3_[i].resize(3, 0.0f);
61 state_4_[i].clear();
58 state_4_[i].resize(3, 0.0f); 62 state_4_[i].resize(3, 0.0f);
59 } 63 }
60 } 64 }
61 65
62 bool ModuleGammatone::InitializeInternal(const SignalBank& input) { 66 bool ModuleGammatone::InitializeInternal(const SignalBank& input) {