diff base/Preferences.h @ 553:98077b21a9e1

* Restore (better quality) y-axis interpolation in spectrogram * Make spectrogram x axis interpolation a preference
author Chris Cannam
date Fri, 06 Feb 2009 15:06:23 +0000
parents d31b4ccb7ddb
children 75f154085a4d
line wrap: on
line diff
--- a/base/Preferences.h	Thu Feb 05 17:46:34 2009 +0000
+++ b/base/Preferences.h	Fri Feb 06 15:06:23 2009 +0000
@@ -42,7 +42,13 @@
         SpectrogramZeroPaddedAndInterpolated
     };
 
+    enum SpectrogramXSmoothing {
+        NoSpectrogramXSmoothing,
+        SpectrogramXInterpolated
+    };
+
     SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; }
+    SpectrogramXSmoothing getSpectrogramXSmoothing() const { return m_spectrogramXSmoothing; }
     float getTuningFrequency() const { return m_tuningFrequency; }
     WindowType getWindowType() const { return m_windowType; }
     int getResampleQuality() const { return m_resampleQuality; }
@@ -75,6 +81,7 @@
     virtual void setProperty(const PropertyName &, int);
 
     void setSpectrogramSmoothing(SpectrogramSmoothing smoothing);
+    void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing);
     void setTuningFrequency(float freq);
     void setPropertyBoxLayout(PropertyBoxLayout layout);
     void setWindowType(WindowType type);
@@ -93,6 +100,7 @@
     static Preferences *m_instance;
 
     SpectrogramSmoothing m_spectrogramSmoothing;
+    SpectrogramXSmoothing m_spectrogramXSmoothing;
     float m_tuningFrequency;
     PropertyBoxLayout m_propertyBoxLayout;
     WindowType m_windowType;