comparison 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
comparison
equal deleted inserted replaced
552:bbe503e368a9 553:98077b21a9e1
40 SpectrogramInterpolated, 40 SpectrogramInterpolated,
41 SpectrogramZeroPadded, 41 SpectrogramZeroPadded,
42 SpectrogramZeroPaddedAndInterpolated 42 SpectrogramZeroPaddedAndInterpolated
43 }; 43 };
44 44
45 enum SpectrogramXSmoothing {
46 NoSpectrogramXSmoothing,
47 SpectrogramXInterpolated
48 };
49
45 SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; } 50 SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; }
51 SpectrogramXSmoothing getSpectrogramXSmoothing() const { return m_spectrogramXSmoothing; }
46 float getTuningFrequency() const { return m_tuningFrequency; } 52 float getTuningFrequency() const { return m_tuningFrequency; }
47 WindowType getWindowType() const { return m_windowType; } 53 WindowType getWindowType() const { return m_windowType; }
48 int getResampleQuality() const { return m_resampleQuality; } 54 int getResampleQuality() const { return m_resampleQuality; }
49 55
50 //!!! harmonise with PaneStack 56 //!!! harmonise with PaneStack
73 79
74 public slots: 80 public slots:
75 virtual void setProperty(const PropertyName &, int); 81 virtual void setProperty(const PropertyName &, int);
76 82
77 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); 83 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing);
84 void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing);
78 void setTuningFrequency(float freq); 85 void setTuningFrequency(float freq);
79 void setPropertyBoxLayout(PropertyBoxLayout layout); 86 void setPropertyBoxLayout(PropertyBoxLayout layout);
80 void setWindowType(WindowType type); 87 void setWindowType(WindowType type);
81 void setResampleQuality(int quality); 88 void setResampleQuality(int quality);
82 void setOmitTempsFromRecentFiles(bool omit); 89 void setOmitTempsFromRecentFiles(bool omit);
91 virtual ~Preferences(); 98 virtual ~Preferences();
92 99
93 static Preferences *m_instance; 100 static Preferences *m_instance;
94 101
95 SpectrogramSmoothing m_spectrogramSmoothing; 102 SpectrogramSmoothing m_spectrogramSmoothing;
103 SpectrogramXSmoothing m_spectrogramXSmoothing;
96 float m_tuningFrequency; 104 float m_tuningFrequency;
97 PropertyBoxLayout m_propertyBoxLayout; 105 PropertyBoxLayout m_propertyBoxLayout;
98 WindowType m_windowType; 106 WindowType m_windowType;
99 int m_resampleQuality; 107 int m_resampleQuality;
100 bool m_omitRecentTemps; 108 bool m_omitRecentTemps;