Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
272:8bbc9e336475 | 273:f1f47660483d |
---|---|
90 } | 90 } |
91 bool isOverThreshold(size_t x, size_t y, float threshold) { | 91 bool isOverThreshold(size_t x, size_t y, float threshold) { |
92 return getMagnitudeAt(x, y) > threshold; | 92 return getMagnitudeAt(x, y) > threshold; |
93 } | 93 } |
94 | 94 |
95 // Calculate an estimated frequency for a stable signal in this | |
96 // bin, using phase unwrapping. This will be completely wrong if | |
97 // the signal is not stable here. | |
98 bool estimateStableFrequency(size_t x, size_t y, | |
99 float sampleRate, float &frequency); | |
100 | |
95 size_t getFillCompletion() const; | 101 size_t getFillCompletion() const; |
96 size_t getFillExtent() const; | 102 size_t getFillExtent() const; |
97 | 103 |
98 private: | 104 private: |
99 FFTDataServer(QString fileBaseName, | 105 FFTDataServer(QString fileBaseName, |