Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 1023:74755fa6ea9e colourschemes
Avoid reusing a large paint width if the zoom level has changed (in case it has changed dramatically, as for example when the user hits the F key). Also some tidying and adjustment to timing stuff
author | Chris Cannam |
---|---|
date | Fri, 22 Jan 2016 18:12:41 +0000 |
parents | 2bd5eb6a6c6b |
children | 3bce4c45b681 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Fri Jan 22 17:08:02 2016 +0000 +++ b/layer/SpectrogramLayer.h Fri Jan 22 18:12:41 2016 +0000 @@ -250,20 +250,20 @@ const DenseTimeValueModel *m_model; // I do not own this int m_channel; - int m_windowSize; + int m_windowSize; WindowType m_windowType; - int m_windowHopLevel; - int m_zeroPadLevel; - int m_fftSize; + int m_windowHopLevel; + int m_zeroPadLevel; + int m_fftSize; float m_gain; float m_initialGain; float m_threshold; float m_initialThreshold; int m_colourRotation; int m_initialRotation; - int m_minFrequency; - int m_maxFrequency; - int m_initialMaxFrequency; + int m_minFrequency; + int m_maxFrequency; + int m_initialMaxFrequency; ColourScale m_colourScale; int m_colourMap; QColor m_crosshairColour; @@ -275,7 +275,7 @@ mutable bool m_haveDetailedScale; mutable int m_lastPaintBlockWidth; - mutable RealTime m_lastPaintTime; + mutable double m_lastPaintTime; // seconds enum { NO_VALUE = 0 }; // colour index for unused pixels