changeset 131:69d50575c52a

* 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)
author Chris Cannam
date Thu, 29 Jun 2006 16:16:49 +0000
parents b290c43f01ec
children 06aba53ea0cf
files base/FFTCache.h transform/FeatureExtractionPluginTransform.cpp
diffstat 2 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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() { }
 };
--- 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<FFTDataServer *> fftServers;
 
+    //!!! use fuzzy fft server matching!
+
     if (frequencyDomain) {
         for (size_t ch = 0; ch < channelCount; ++ch) {
             fftServers.push_back(FFTDataServer::getInstance