Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
245:4cd620bd4c61 | 246:d7eeffbb8aaf |
---|---|
33 virtual int getPropertyRangeAndValue(const PropertyName &, int *, int *, int *) const; | 33 virtual int getPropertyRangeAndValue(const PropertyName &, int *, int *, int *) const; |
34 virtual QString getPropertyValueLabel(const PropertyName &, int value) const; | 34 virtual QString getPropertyValueLabel(const PropertyName &, int value) const; |
35 virtual QString getPropertyContainerName() const; | 35 virtual QString getPropertyContainerName() const; |
36 virtual QString getPropertyContainerIconName() const; | 36 virtual QString getPropertyContainerIconName() const; |
37 | 37 |
38 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } | 38 enum SpectrogramSmoothing { |
39 NoSpectrogramSmoothing, | |
40 SpectrogramInterpolated, | |
41 SpectrogramZeroPadded, | |
42 SpectrogramZeroPaddedAndInterpolated | |
43 }; | |
44 | |
45 SpectrogramSmoothing getSpectrogramSmoothing() const { return m_spectrogramSmoothing; } | |
39 float getTuningFrequency() const { return m_tuningFrequency; } | 46 float getTuningFrequency() const { return m_tuningFrequency; } |
40 WindowType getWindowType() const { return m_windowType; } | 47 WindowType getWindowType() const { return m_windowType; } |
41 int getResampleQuality() const { return m_resampleQuality; } | 48 int getResampleQuality() const { return m_resampleQuality; } |
42 | 49 |
43 //!!! harmonise with PaneStack | 50 //!!! harmonise with PaneStack |
48 PropertyBoxLayout getPropertyBoxLayout() const { return m_propertyBoxLayout; } | 55 PropertyBoxLayout getPropertyBoxLayout() const { return m_propertyBoxLayout; } |
49 | 56 |
50 public slots: | 57 public slots: |
51 virtual void setProperty(const PropertyName &, int); | 58 virtual void setProperty(const PropertyName &, int); |
52 | 59 |
53 void setSmoothSpectrogram(bool smooth); | 60 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
54 void setTuningFrequency(float freq); | 61 void setTuningFrequency(float freq); |
55 void setPropertyBoxLayout(PropertyBoxLayout layout); | 62 void setPropertyBoxLayout(PropertyBoxLayout layout); |
56 void setWindowType(WindowType type); | 63 void setWindowType(WindowType type); |
57 void setResampleQuality(int quality); | 64 void setResampleQuality(int quality); |
58 | 65 |
60 Preferences(); // may throw DirectoryCreationFailed | 67 Preferences(); // may throw DirectoryCreationFailed |
61 virtual ~Preferences(); | 68 virtual ~Preferences(); |
62 | 69 |
63 static Preferences *m_instance; | 70 static Preferences *m_instance; |
64 | 71 |
65 bool m_smoothSpectrogram; | 72 SpectrogramSmoothing m_spectrogramSmoothing; |
66 float m_tuningFrequency; | 73 float m_tuningFrequency; |
67 PropertyBoxLayout m_propertyBoxLayout; | 74 PropertyBoxLayout m_propertyBoxLayout; |
68 WindowType m_windowType; | 75 WindowType m_windowType; |
69 int m_resampleQuality; | 76 int m_resampleQuality; |
70 }; | 77 }; |