Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 84:c683705adcbf
* just a comment fix
author | Chris Cannam |
---|---|
date | Sat, 29 Apr 2006 19:20:28 +0000 |
parents | 19bf27e4fb29 |
children | d31c4f5230d7 |
comparison
equal
deleted
inserted
replaced
83:01f27a282c90 | 84:c683705adcbf |
---|---|
216 QColor m_crosshairColour; | 216 QColor m_crosshairColour; |
217 FrequencyScale m_frequencyScale; | 217 FrequencyScale m_frequencyScale; |
218 BinDisplay m_binDisplay; | 218 BinDisplay m_binDisplay; |
219 bool m_normalizeColumns; | 219 bool m_normalizeColumns; |
220 | 220 |
221 // At the moment we cache one unsigned char per bin for the | 221 // We would like to cache magnitude in a way that can have gain |
222 // magnitude -- which is nothing like precise enough to allow us | 222 // applied afterwards and can determine whether something is a |
223 // to subsequently adjust gain etc without recalculating the | 223 // peak or not, and also cache phase rather than only |
224 // cached values -- plus optionally one unsigned char per bin for | 224 // phase-adjusted frequency so that we don't have to recalculate |
225 // phase-adjusted frequency. | 225 // if switching between phase and magnitude displays. At the same |
226 | 226 // time, we don't want to waste too much memory. |
227 // To speed up redrawing after parameter changes, we would like to | |
228 // cache magnitude in a way that can have gain applied afterwards | |
229 // and can determine whether something is a peak or not, and also | |
230 // cache phase rather than only phase-adjusted frequency so that | |
231 // we don't have to recalculate if switching between phase and | |
232 // magnitude displays. | |
233 | 227 |
234 // This implies probably 16 bits for a normalized magnitude (in | 228 // This implies probably 16 bits for a normalized magnitude (in |
235 // dB?) and at most 16 bits for phase. 16 or 32 bits per bin | 229 // dB?) and at most 16 bits for phase. |
236 // instead of 8 or 16. | |
237 | 230 |
238 // Each column's magnitudes are expected to be stored normalized | 231 // Each column's magnitudes are expected to be stored normalized |
239 // to [0,1] with respect to the column, so the normalization | 232 // to [0,1] with respect to the column, so the normalization |
240 // factor should be calculated before all values in a column, and | 233 // factor should be calculated before all values in a column, and |
241 // set appropriately. | 234 // set appropriately. |