comparison transform/FeatureExtractionPluginTransform.cpp @ 146:d27f13651e67

* don't store fft values scaled by fftsize/2; that's a special requirement for the spectrogram, and other applications will not expect it -- make the spectrogram do that scaling itself * add a higher-resolution memory cache (still polar, though) as an alternative to the 16-bit compact cache * don't use the memory cache if we want rectangular coords (unless the disc cache is totally infeasible) as conversion slows it down anyway * avoid redundant rectangular -> polar -> rectangular conversion when storing values in a rectangular-mode disc cache
author Chris Cannam
date Fri, 01 Jun 2007 13:56:35 +0000
parents dfaf4f9330b5
children 0c22273a1d8c
comparison
equal deleted inserted replaced
145:dfaf4f9330b5 146:d27f13651e67
301 if (blockFrame - int(m_context.blockSize)/2 > endFrame) break; 301 if (blockFrame - int(m_context.blockSize)/2 > endFrame) break;
302 } else { 302 } else {
303 if (blockFrame >= endFrame) break; 303 if (blockFrame >= endFrame) break;
304 } 304 }
305 305
306 // std::cerr << "FeatureExtractionPluginTransform::run: blockFrame " 306 std::cerr << "FeatureExtractionPluginTransform::run: blockFrame "
307 // << blockFrame << std::endl; 307 << blockFrame << std::endl;
308 308
309 long completion = 309 long completion =
310 (((blockFrame - startFrame) / m_context.stepSize) * 99) / 310 (((blockFrame - startFrame) / m_context.stepSize) * 99) /
311 ( (endFrame - startFrame) / m_context.stepSize); 311 ( (endFrame - startFrame) / m_context.stepSize);
312 312