changeset 138:0f1ac9562c76

* revert to using averages
author Chris Cannam
date Tue, 05 Sep 2006 16:34:54 +0000
parents 10a82b2bbb8b
children 5ec6b60658d8
files layer/SpectrogramLayer.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);