Mercurial > hg > svcore
diff data/fft/FFTDataServer.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 | a867be73b638 |
children | 522f82311e4e |
line wrap: on
line diff
--- a/data/fft/FFTDataServer.h Mon Jul 02 14:57:01 2007 +0000 +++ b/data/fft/FFTDataServer.h Tue Jul 03 12:46:18 2007 +0000 @@ -92,6 +92,12 @@ return getMagnitudeAt(x, y) > threshold; } + // Calculate an estimated frequency for a stable signal in this + // bin, using phase unwrapping. This will be completely wrong if + // the signal is not stable here. + bool estimateStableFrequency(size_t x, size_t y, + float sampleRate, float &frequency); + size_t getFillCompletion() const; size_t getFillExtent() const;