Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 222:cd81066ac7ad
* More useful status bar text -- show the current play time and the extents of
the visible area
* Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake
to do the right thing now that the project file has been split up into
several project files
* Fix missing Q_OBJECTs, etc, reported by lupdate
* Update Russian translation from AlexandrE
author | Chris Cannam |
---|---|
date | Wed, 07 Mar 2007 17:07:02 +0000 |
parents | 9e739f92c0b8 |
children | 9465b5375235 |
comparison
equal
deleted
inserted
replaced
221:9e739f92c0b8 | 222:cd81066ac7ad |
---|---|
2025 bool interpolate = false; | 2025 bool interpolate = false; |
2026 Preferences::SpectrogramSmoothing smoothing = | 2026 Preferences::SpectrogramSmoothing smoothing = |
2027 Preferences::getInstance()->getSpectrogramSmoothing(); | 2027 Preferences::getInstance()->getSpectrogramSmoothing(); |
2028 if (smoothing == Preferences::SpectrogramInterpolated || | 2028 if (smoothing == Preferences::SpectrogramInterpolated || |
2029 smoothing == Preferences::SpectrogramZeroPaddedAndInterpolated) { | 2029 smoothing == Preferences::SpectrogramZeroPaddedAndInterpolated) { |
2030 interpolate = true; | 2030 if (m_binDisplay != PeakBins && |
2031 m_binDisplay != PeakFrequencies) { | |
2032 interpolate = true; | |
2033 } | |
2031 } | 2034 } |
2032 | 2035 |
2033 | 2036 |
2034 #ifdef DEBUG_SPECTROGRAM_REPAINT | 2037 #ifdef DEBUG_SPECTROGRAM_REPAINT |
2035 std::cerr << (float(v->getFrameForX(1) - v->getFrameForX(0)) / increment) << " bins per pixel" << std::endl; | 2038 std::cerr << (float(v->getFrameForX(1) - v->getFrameForX(0)) / increment) << " bins per pixel" << std::endl; |