diff layer/SpectrogramLayer.cpp @ 138:0f1ac9562c76

* revert to using averages
author Chris Cannam
date Tue, 05 Sep 2006 16:34:54 +0000
parents 10a82b2bbb8b
children 40a47de69559
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Tue Aug 22 14:18:28 2006 +0000
+++ b/layer/SpectrogramLayer.cpp	Tue Sep 05 16:34:54 2006 +0000
@@ -2098,8 +2098,8 @@
 		unsigned char pixel = 0;
 
 		float avg = ymag[y] / ydiv[y];
-//!!!		pixel = getDisplayValue(v, avg);
-		pixel = getDisplayValue(v, ypeak[y]);
+		pixel = getDisplayValue(v, avg);
+//!!!		pixel = getDisplayValue(v, ypeak[y]);
 
 		assert(x <= m_drawBuffer.width());
 		QColor c = m_colourMap.getColour(pixel);