Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 40:3be4438b186d
* More fixes, tidying etc in spectrogram layer.  Added a piano keyboard
  for the log frequency scale mode.
| author | Chris Cannam | 
|---|---|
| date | Fri, 24 Feb 2006 15:46:47 +0000 | 
| parents | 5ce844ec854a | 
| children | f2c416cbdaa9 | 
line wrap: on
 line diff
--- a/layer/SpectrogramLayer.h Thu Feb 23 18:06:31 2006 +0000 +++ b/layer/SpectrogramLayer.h Fri Feb 24 15:46:47 2006 +0000 @@ -152,7 +152,7 @@ bool getNormalizeColumns() const; enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, - RedOnBlue, YellowOnBlack, RedOnBlack }; + RedOnBlue, YellowOnBlack, Rainbow }; void setColourScheme(ColourScheme scheme); ColourScheme getColourScheme() const; @@ -353,6 +353,12 @@ bool &steadyState); unsigned char getDisplayValue(float input) const; + float getInputForDisplayValue(unsigned char uc) const; + + int getColourScaleWidth(QPainter &) const; + + float getEffectiveMinFrequency() const; + float getEffectiveMaxFrequency() const; bool getYBinRange(int y, float &freqBinMin, float &freqBinMax) const;
