Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1002:dc8092488005 3.0-integration
Merge from branch "tony-2.0-integration"
author | Chris Cannam |
---|---|
date | Wed, 14 Oct 2015 10:12:59 +0100 |
parents | 89f44d182d37 |
children | 7347cf34f538 9c890b7dfa83 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Aug 04 16:39:40 2015 +0100 +++ b/layer/SpectrogramLayer.cpp Wed Oct 14 10:12:59 2015 +0100 @@ -1512,7 +1512,7 @@ } if (m_fftModels[view]->getHeight() != fftSize / 2 + 1) { #ifdef DEBUG_SPECTROGRAM_REPAINT - cerr << "SpectrogramLayer::getFFTModel(" << v << "): Found a model with the wrong height (" << m_fftModels[view].first->getHeight() << ", wanted " << (fftSize / 2 + 1) << ")" << endl; + cerr << "SpectrogramLayer::getFFTModel(" << v << "): Found a model with the wrong height (" << m_fftModels[view]->getHeight() << ", wanted " << (fftSize / 2 + 1) << ")" << endl; #endif delete m_fftModels[view]; m_fftModels.erase(view); @@ -2571,7 +2571,7 @@ fft->getNormalizedMagnitudesAt(sx, autoarray, minbin, maxbin - minbin + 1); float max = fft->getMaximumMagnitudeAt(sx); float scale = log10f(max + 1.f); - cout << "sx = " << sx << ", max = " << max << ", log10(max) = " << log10(max) << ", scale = " << scale << endl; +// cout << "sx = " << sx << ", max = " << max << ", log10(max) = " << log10(max) << ", scale = " << scale << endl; for (int i = minbin; i <= maxbin; ++i) { autoarray[i - minbin] *= scale; }