comparison layer/SpectrumLayer.cpp @ 975:b8187c83b93a simple-fft-model

Gut the old code, but don't replace it yet (so nothing will link yet)
author Chris Cannam
date Fri, 12 Jun 2015 14:51:46 +0100
parents 4a578a360011
children 64c2b3a4435a
comparison
equal deleted inserted replaced
974:6645b6b8356f 975:b8187c83b93a
110 FFTModel *newFFT = new FFTModel(m_originModel, 110 FFTModel *newFFT = new FFTModel(m_originModel,
111 m_channel, 111 m_channel,
112 m_windowType, 112 m_windowType,
113 m_windowSize, 113 m_windowSize,
114 getWindowIncrement(), 114 getWindowIncrement(),
115 m_windowSize, 115 m_windowSize);
116 false,
117 StorageAdviser::Criteria
118 (StorageAdviser::SpeedCritical |
119 StorageAdviser::FrequentLookupLikely));
120 116
121 setSliceableModel(newFFT); 117 setSliceableModel(newFFT);
122 118
123 m_biasCurve.clear(); 119 m_biasCurve.clear();
124 for (int i = 0; i < m_windowSize; ++i) { 120 for (int i = 0; i < m_windowSize; ++i) {
125 m_biasCurve.push_back(1.f / (float(m_windowSize)/2.f)); 121 m_biasCurve.push_back(1.f / (float(m_windowSize)/2.f));
126 } 122 }
127
128 newFFT->resume();
129 123
130 m_newFFTNeeded = false; 124 m_newFFTNeeded = false;
131 } 125 }
132 126
133 Layer::PropertyList 127 Layer::PropertyList