Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 36:c28ebb4ba4de
* Improvements to text layer editing, and implement file I/O for it
* Start some fixes to spectrogram frequency computation
author | Chris Cannam |
---|---|
date | Mon, 20 Feb 2006 17:23:40 +0000 |
parents | 10ba9276a315 |
children | 21d061e66177 |
comparison
equal
deleted
inserted
replaced
35:10ba9276a315 | 36:c28ebb4ba4de |
---|---|
127 /** | 127 /** |
128 * Specify the processing of frequency bins for the y axis. | 128 * Specify the processing of frequency bins for the y axis. |
129 */ | 129 */ |
130 void setFrequencyAdjustment(FrequencyAdjustment); | 130 void setFrequencyAdjustment(FrequencyAdjustment); |
131 FrequencyAdjustment getFrequencyAdjustment() const; | 131 FrequencyAdjustment getFrequencyAdjustment() const; |
132 | |
133 void setNormalizeColumns(bool n); | |
134 bool getNormalizeColumns() const; | |
132 | 135 |
133 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, | 136 enum ColourScheme { DefaultColours, WhiteOnBlack, BlackOnWhite, |
134 RedOnBlue, YellowOnBlack, RedOnBlack }; | 137 RedOnBlue, YellowOnBlack, RedOnBlack }; |
135 | 138 |
136 void setColourScheme(ColourScheme scheme); | 139 void setColourScheme(ColourScheme scheme); |
175 size_t m_maxFrequency; | 178 size_t m_maxFrequency; |
176 ColourScale m_colourScale; | 179 ColourScale m_colourScale; |
177 ColourScheme m_colourScheme; | 180 ColourScheme m_colourScheme; |
178 FrequencyScale m_frequencyScale; | 181 FrequencyScale m_frequencyScale; |
179 FrequencyAdjustment m_frequencyAdjustment; | 182 FrequencyAdjustment m_frequencyAdjustment; |
183 bool m_normalizeColumns; | |
180 | 184 |
181 // A QImage would do just as well here, and we originally used | 185 // A QImage would do just as well here, and we originally used |
182 // one: the problem is that we want to munlock() the memory it | 186 // one: the problem is that we want to munlock() the memory it |
183 // uses, and it's much easier to do that if we control it. This | 187 // uses, and it's much easier to do that if we control it. This |
184 // cache is hardwired to an effective 8-bit colour mapped layout. | 188 // cache is hardwired to an effective 8-bit colour mapped layout. |