Mercurial > hg > svcore
comparison base/Preferences.cpp @ 1578:07f23b90701a
Remove oversampling from prefs, now that it's in the spectrogram layer properties
author | Chris Cannam |
---|---|
date | Wed, 14 Nov 2018 15:46:35 +0000 |
parents | ea28ee929034 |
children | 70e172e6cc59 |
comparison
equal
deleted
inserted
replaced
1577:50fe6d6a5ef0 | 1578:07f23b90701a |
---|---|
239 Preferences::getPropertyRangeAndValue(const PropertyName &name, | 239 Preferences::getPropertyRangeAndValue(const PropertyName &name, |
240 int *min, int *max, int *deflt) const | 240 int *min, int *max, int *deflt) const |
241 { | 241 { |
242 if (name == "Spectrogram Y Smoothing") { | 242 if (name == "Spectrogram Y Smoothing") { |
243 if (min) *min = 0; | 243 if (min) *min = 0; |
244 if (max) *max = 3; | 244 if (max) *max = 1; |
245 if (deflt) *deflt = int(SpectrogramInterpolated); | 245 if (deflt) *deflt = int(SpectrogramInterpolated); |
246 return int(m_spectrogramSmoothing); | 246 return int(m_spectrogramSmoothing); |
247 } | 247 } |
248 if (name == "Spectrogram X Smoothing") { | 248 if (name == "Spectrogram X Smoothing") { |
249 if (min) *min = 0; | 249 if (min) *min = 0; |
351 } | 351 } |
352 if (name == "Spectrogram Y Smoothing") { | 352 if (name == "Spectrogram Y Smoothing") { |
353 switch (value) { | 353 switch (value) { |
354 case NoSpectrogramSmoothing: return tr("None"); | 354 case NoSpectrogramSmoothing: return tr("None"); |
355 case SpectrogramInterpolated: return tr("Linear interpolation"); | 355 case SpectrogramInterpolated: return tr("Linear interpolation"); |
356 case SpectrogramZeroPadded: return tr("4 x Oversampling"); | |
357 case SpectrogramZeroPaddedAndInterpolated: return tr("4 x Oversampling with interpolation"); | |
358 } | 356 } |
359 } | 357 } |
360 if (name == "Spectrogram X Smoothing") { | 358 if (name == "Spectrogram X Smoothing") { |
361 switch (value) { | 359 switch (value) { |
362 case NoSpectrogramXSmoothing: return tr("None"); | 360 case NoSpectrogramXSmoothing: return tr("None"); |