Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1403:10e768adaee5
Retain consistent min freq (rather than min bin no) when changing fft parameters in spectrum; scale ffts by window size rather than fft size in case of oversampling, to avoid fading out because of scale factor including zero padding
author | Chris Cannam |
---|---|
date | Thu, 15 Nov 2018 15:08:08 +0000 |
parents | ba1f0234efa7 |
children | 4c359c2b220c |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Thu Nov 15 14:18:26 2018 +0000 +++ b/layer/SpectrogramLayer.cpp Thu Nov 15 15:08:08 2018 +0000 @@ -1534,7 +1534,7 @@ if (m_colourScale != ColourScaleType::Phase && m_normalization != ColumnNormalization::Hybrid) { - params.scaleFactor *= 2.f / float(getFFTSize()); + params.scaleFactor *= 2.f / float(getWindowSize()); } Preferences::SpectrogramSmoothing smoothing =