diff layer/SpectrogramLayer.cpp @ 209:b6af2eb00780

...
author Chris Cannam
date Tue, 27 Feb 2007 17:51:52 +0000
parents 258af0c4dc28
children 748985c7e2c1
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Tue Feb 27 12:51:38 2007 +0000
+++ b/layer/SpectrogramLayer.cpp	Tue Feb 27 17:51:52 2007 +0000
@@ -2099,7 +2099,9 @@
                 if (overallMag.sample(mag)) {
                     //!!! scaling would change here
                     overallMagChanged = true;
+#ifdef DEBUG_SPECTROGRAM_REPAINT
                     std::cerr << "Overall mag changed (again?) at column " << s << ", to [" << overallMag.getMin() << "->" << overallMag.getMax() << "]" << std::endl;
+#endif
                 }
             }
 	}
@@ -2123,9 +2125,13 @@
 
     if (overallMagChanged) {
         m_viewMags[v] = overallMag;
+#ifdef DEBUG_SPECTROGRAM_REPAINT
         std::cerr << "Overall mag is now [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "] - will be updating" << std::endl;
+#endif
     } else {
+#ifdef DEBUG_SPECTROGRAM_REPAINT
         std::cerr << "Overall mag unchanged at [" << m_viewMags[v].getMin() << "->" << m_viewMags[v].getMax() << "]" << std::endl;
+#endif
     }
 
     Profiler profiler2("SpectrogramLayer::paint: draw image", true);