# HG changeset patch # User Chris Cannam # Date 1151597809 0 # Node ID 69d50575c52aa528ae0f74253c23768d3549d1ae # Parent b290c43f01ec16a88f0bc03b5390b70d2623e55c * Various fft server improvements, including the ability to pick out data from an existing fft cache at a smaller increment or larger fft size rather than recalculating it (if appropriate) diff -r b290c43f01ec -r 69d50575c52a base/FFTCache.h --- a/base/FFTCache.h Wed Jun 28 15:42:04 2006 +0000 +++ b/base/FFTCache.h Thu Jun 29 16:16:49 2006 +0000 @@ -48,16 +48,6 @@ virtual void suspend() { } - bool isLocalPeak(size_t x, size_t y) const { - float mag = getMagnitudeAt(x, y); - if (y > 0 && mag < getMagnitudeAt(x, y - 1)) return false; - if (y < getHeight()-1 && mag < getMagnitudeAt(x, y + 1)) return false; - return true; - } - bool isOverThreshold(size_t x, size_t y, float threshold) const { - return getMagnitudeAt(x, y) > threshold; - } - protected: FFTCache() { } }; diff -r b290c43f01ec -r 69d50575c52a transform/FeatureExtractionPluginTransform.cpp --- a/transform/FeatureExtractionPluginTransform.cpp Wed Jun 28 15:42:04 2006 +0000 +++ b/transform/FeatureExtractionPluginTransform.cpp Thu Jun 29 16:16:49 2006 +0000 @@ -264,6 +264,8 @@ Vamp::Plugin::FrequencyDomain); std::vector fftServers; + //!!! use fuzzy fft server matching! + if (frequencyDomain) { for (size_t ch = 0; ch < channelCount; ++ch) { fftServers.push_back(FFTDataServer::getInstance