# HG changeset patch # User Chris Cannam # Date 1228734913 0 # Node ID 0acf803e2c79183b725fce9ef1b1f997043452b0 # Parent bd4db63b085e47cca360e5b667ee450846c9c915 * Cut back on the locking and general workload in FFTDataServer::getMagnitudes(). This stuff is far too complicated! diff -r bd4db63b085e -r 0acf803e2c79 layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Thu Dec 04 17:17:06 2008 +0000 +++ b/layer/SpectrogramLayer.cpp Mon Dec 08 11:15:13 2008 +0000 @@ -2284,27 +2284,6 @@ value *= m_gain; } - /* - float v2 = value; - -//!!! - value = 0.f; - if (m_colourScale == PhaseColourScale) { - value = fft->getPhaseAt(s, q); - } else if (m_normalizeColumns) { - value = fft->getNormalizedMagnitudeAt(s, q); - mag.sample(value); - value *= m_gain; - } else { - value = fft->getMagnitudeAt(s, q) / (m_fftSize/2); - mag.sample(value); - value *= m_gain; - } - - if (value != v2) { - std::cout << "old = " << value << " new = " << v2 << " at y = " << q << std::endl; - } - */ if (interpolate) { int ypi = y0i;