comparison data/fft/FFTDataServer.h @ 275:522f82311e4e

* Pull peak-picker out of SpectrumLayer and into FFTModel; use combined peak-picker and frequency estimator for SpectrogramLayer (makes the peak frequency spectrogram a bit quicker) * Add more information to spectrum and spectrogram crosshairs
author Chris Cannam
date Wed, 04 Jul 2007 15:29:16 +0000
parents f1f47660483d
children aa8dbac62024
comparison
equal deleted inserted replaced
274:e412f65884ee 275:522f82311e4e
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
101 size_t getFillCompletion() const; 95 size_t getFillCompletion() const;
102 size_t getFillExtent() const; 96 size_t getFillExtent() const;
103 97
104 private: 98 private:
105 FFTDataServer(QString fileBaseName, 99 FFTDataServer(QString fileBaseName,