changeset 459:0acf803e2c79

* Cut back on the locking and general workload in FFTDataServer::getMagnitudes(). This stuff is far too complicated!
author Chris Cannam
date Mon, 08 Dec 2008 11:15:13 +0000
parents bd4db63b085e
children 5f9a257598d8
files layer/SpectrogramLayer.cpp
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- 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;