# HG changeset patch # User Chris Cannam # Date 1157474094 0 # Node ID 0f1ac9562c76e76b0c0e11041cc43f79fa1c8c97 # Parent 10a82b2bbb8b81960a3193803f536a388157172b * revert to using averages diff -r 10a82b2bbb8b -r 0f1ac9562c76 layer/SpectrogramLayer.cpp --- 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);