comparison layer/SpectrumLayer.h @ 265:a3a54632cd4c

* fixes to spectrum harmonic cursor etc
author Chris Cannam
date Fri, 15 Jun 2007 15:48:11 +0000
parents 6d113226bb4c
children 4ed1446ad604
comparison
equal deleted inserted replaced
264:7e9e533f1863 265:a3a54632cd4c
98 void setupFFT(); 98 void setupFFT();
99 99
100 virtual void getBiasCurve(BiasCurve &) const; 100 virtual void getBiasCurve(BiasCurve &) const;
101 BiasCurve m_biasCurve; 101 BiasCurve m_biasCurve;
102 102
103 virtual float getXForBin(int bin, int totalBins, float w) const;
104 virtual int getBinForX(float x, int totalBins, float w) const;
105
103 float getFrequencyForX(float x, float w) const; 106 float getFrequencyForX(float x, float w) const;
104 float getXForFrequency(float freq, float w) const; 107 float getXForFrequency(float freq, float w) const;
105 108
106 size_t getWindowIncrement() const { 109 size_t getWindowIncrement() const {
107 if (m_windowHopLevel == 0) return m_windowSize; 110 if (m_windowHopLevel == 0) return m_windowSize;