Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 9:561be41ad083
* Tweaked up spectrogram and added a colourmap rotation option
* Fleshed out the SV file reader code -- now we just need to hook it up
and watch it fall over
author | Chris Cannam |
---|---|
date | Mon, 16 Jan 2006 18:04:09 +0000 |
parents | 02aaea1ffaf7 |
children | 2d5005f2b3d9 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Fri Jan 13 18:05:07 2006 +0000 +++ b/layer/SpectrogramLayer.h Mon Jan 16 18:04:09 2006 +0000 @@ -118,6 +118,12 @@ void setColourScheme(ColourScheme scheme); ColourScheme getColourScheme() const; + /** + * Specify the colourmap rotation for the colour scale. + */ + void setColourRotation(int); + int getColourRotation() const; + virtual VerticalPosition getPreferredFrameCountPosition() const { return PositionTop; } @@ -143,6 +149,7 @@ WindowType m_windowType; size_t m_windowOverlap; float m_gain; + int m_colourRotation; size_t m_maxFrequency; ColourScale m_colourScale; ColourScheme m_colourScheme; @@ -184,11 +191,14 @@ bool m_exiting; void setCacheColourmap(); + void rotateCacheColourmap(int distance); bool fillCacheColumn(int column, double *inputBuffer, fftw_complex *outputBuffer, fftw_plan plan, + size_t windowSize, + size_t windowIncrement, const Window<double> &windower, bool lock) const;