comparison 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
comparison
equal deleted inserted replaced
39:5ce844ec854a 40:3be4438b186d
150 150
151 void setNormalizeColumns(bool n); 151 void setNormalizeColumns(bool n);
152 bool getNormalizeColumns() const; 152 bool getNormalizeColumns() const;
153 153
154 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, 154 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite,
155 RedOnBlue, YellowOnBlack, RedOnBlack }; 155 RedOnBlue, YellowOnBlack, Rainbow };
156 156
157 void setColourScheme(ColourScheme scheme); 157 void setColourScheme(ColourScheme scheme);
158 ColourScheme getColourScheme() const; 158 ColourScheme getColourScheme() const;
159 159
160 /** 160 /**
351 float previousPhase, 351 float previousPhase,
352 float currentPhase, 352 float currentPhase,
353 bool &steadyState); 353 bool &steadyState);
354 354
355 unsigned char getDisplayValue(float input) const; 355 unsigned char getDisplayValue(float input) const;
356 float getInputForDisplayValue(unsigned char uc) const;
357
358 int getColourScaleWidth(QPainter &) const;
359
360 float getEffectiveMinFrequency() const;
361 float getEffectiveMaxFrequency() const;
356 362
357 bool getYBinRange(int y, float &freqBinMin, float &freqBinMax) const; 363 bool getYBinRange(int y, float &freqBinMin, float &freqBinMax) const;
358 364
359 struct LayerRange { 365 struct LayerRange {
360 long startFrame; 366 long startFrame;