Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 277:8acd30ed735c
* Fix up and simplify the LayerTreeModel, removing a horrible memory leak
* Move phase-unwrapped frequency estimation from SpectrogramLayer to
FFTDataServer
* Make the spectrum show peak phase-unwrapped frequencies as well (still
needs work)
* Start adding piano keyboard horizontal scale to spectrum
* Debug output for id3 tags
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2007 12:46:18 +0000 |
parents | e954c00cbe55 |
children | 86a112b5b319 |
comparison
equal
deleted
inserted
replaced
276:21c7152ddba8 | 277:8acd30ed735c |
---|---|
293 mutable size_t m_candidateFillStartFrame; | 293 mutable size_t m_candidateFillStartFrame; |
294 bool m_exiting; | 294 bool m_exiting; |
295 | 295 |
296 void initialisePalette(); | 296 void initialisePalette(); |
297 void rotatePalette(int distance); | 297 void rotatePalette(int distance); |
298 | |
299 static float calculateFrequency(size_t bin, | |
300 size_t windowSize, | |
301 size_t windowIncrement, | |
302 size_t sampleRate, | |
303 float previousPhase, | |
304 float currentPhase, | |
305 bool &steadyState); | |
306 | 298 |
307 unsigned char getDisplayValue(View *v, float input) const; | 299 unsigned char getDisplayValue(View *v, float input) const; |
308 float getInputForDisplayValue(unsigned char uc) const; | 300 float getInputForDisplayValue(unsigned char uc) const; |
309 | 301 |
310 int getColourScaleWidth(QPainter &) const; | 302 int getColourScaleWidth(QPainter &) const; |