Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/model/FFTModel.h Mon Jul 02 14:57:01 2007 +0000 +++ b/data/model/FFTModel.h Tue Jul 03 12:46:18 2007 +0000 @@ -123,6 +123,11 @@ virtual void getColumn(size_t x, Column &result) const; virtual QString getBinName(size_t n) const; + virtual bool estimateStableFrequency(size_t x, size_t y, float &frequency) { + return m_server->estimateStableFrequency(x << m_xshift, y << m_yshift, + getSampleRate(), frequency); + } + virtual int getCompletion() const { return m_server->getFillCompletion(); } virtual Model *clone() const;