comparison data/model/FFTModel.h @ 273:f1f47660483d

* 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 d2ffb480ff33
children 522f82311e4e
comparison
equal deleted inserted replaced
272:8bbc9e336475 273:f1f47660483d
121 return 1.f; // Can't provide 121 return 1.f; // Can't provide
122 } 122 }
123 virtual void getColumn(size_t x, Column &result) const; 123 virtual void getColumn(size_t x, Column &result) const;
124 virtual QString getBinName(size_t n) const; 124 virtual QString getBinName(size_t n) const;
125 125
126 virtual bool estimateStableFrequency(size_t x, size_t y, float &frequency) {
127 return m_server->estimateStableFrequency(x << m_xshift, y << m_yshift,
128 getSampleRate(), frequency);
129 }
130
126 virtual int getCompletion() const { return m_server->getFillCompletion(); } 131 virtual int getCompletion() const { return m_server->getFillCompletion(); }
127 132
128 virtual Model *clone() const; 133 virtual Model *clone() const;
129 134
130 virtual void suspend() { m_server->suspend(); } 135 virtual void suspend() { m_server->suspend(); }