Mercurial > hg > svcore
diff base/Preferences.h @ 246:d7eeffbb8aaf
* Add fuzzy interpolation option as an alternative to zero padding in
spectrogram (looks terrible though)
* Make spectrogram appear more quickly by having the FFT server notify of
updates more often near the start of its run
author | Chris Cannam |
---|---|
date | Mon, 05 Mar 2007 15:32:55 +0000 |
parents | 4cd620bd4c61 |
children | 3b8008d09541 |
line wrap: on
line diff
--- a/base/Preferences.h Fri Mar 02 14:00:12 2007 +0000 +++ b/base/Preferences.h Mon Mar 05 15:32:55 2007 +0000 @@ -35,7 +35,14 @@ virtual QString getPropertyContainerName() const; virtual QString getPropertyContainerIconName() const; - bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } + enum SpectrogramSmoothing { + NoSpectrogramSmoothing, + SpectrogramInterpolated, + SpectrogramZeroPadded, + SpectrogramZeroPaddedAndInterpolated + }; + + SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; } float getTuningFrequency() const { return m_tuningFrequency; } WindowType getWindowType() const { return m_windowType; } int getResampleQuality() const { return m_resampleQuality; } @@ -50,7 +57,7 @@ public slots: virtual void setProperty(const PropertyName &, int); - void setSmoothSpectrogram(bool smooth); + void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); void setTuningFrequency(float freq); void setPropertyBoxLayout(PropertyBoxLayout layout); void setWindowType(WindowType type); @@ -62,7 +69,7 @@ static Preferences *m_instance; - bool m_smoothSpectrogram; + SpectrogramSmoothing m_spectrogramSmoothing; float m_tuningFrequency; PropertyBoxLayout m_propertyBoxLayout; WindowType m_windowType;