diff layer/SpectrogramLayer.h @ 109:12340cb6e6cb

* Add FFT data server class to provide a file cache mapping for each required set of FFT parameters and source model. Make use of it in feature extraction plugin transform, though not in other places yet. * Add zero-pad option to spectrogram layer and remove window shape option from the property box. To be revised.
author Chris Cannam
date Mon, 26 Jun 2006 16:12:11 +0000
parents bf196d6e8998
children f262aa8973e3
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Mon Jun 26 16:08:57 2006 +0000
+++ b/layer/SpectrogramLayer.h	Mon Jun 26 16:12:11 2006 +0000
@@ -93,12 +93,15 @@
     void setWindowSize(size_t);
     size_t getWindowSize() const;
     
-    void setWindowHopLevel(size_t percent);
+    void setWindowHopLevel(size_t level);
     size_t getWindowHopLevel() const;
 
     void setWindowType(WindowType type);
     WindowType getWindowType() const;
 
+    void setZeroPadLevel(size_t level);
+    size_t getZeroPadLevel() const;
+
     /**
      * Set the gain multiplier for sample values in this view prior to
      * FFT calculation.
@@ -215,6 +218,7 @@
     size_t              m_windowSize;
     WindowType          m_windowType;
     size_t              m_windowHopLevel;
+    size_t              m_zeroPadLevel;
     size_t              m_fftSize;
     float               m_gain;
     float               m_threshold;