comparison cq/CQInverse.h @ 145:ff8ae033615f

No reason getBinFrequency shouldn't work for non-integer bin numbers too
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 22 May 2014 16:58:59 +0100
parents 8996465e39fc
children 1060a19e2334
comparison
equal deleted inserted replaced
144:88b8d34bfc77 145:ff8ae033615f
50 virtual int getTotalBins() const { return m_octaves * m_binsPerOctave; } 50 virtual int getTotalBins() const { return m_octaves * m_binsPerOctave; }
51 virtual int getColumnHop() const { return m_p.fftHop / m_p.atomsPerFrame; } 51 virtual int getColumnHop() const { return m_p.fftHop / m_p.atomsPerFrame; }
52 virtual int getLatency() const { return m_outputLatency; } 52 virtual int getLatency() const { return m_outputLatency; }
53 virtual double getMaxFrequency() const { return m_p.maxFrequency; } 53 virtual double getMaxFrequency() const { return m_p.maxFrequency; }
54 virtual double getMinFrequency() const; // actual min, not that passed to ctor 54 virtual double getMinFrequency() const; // actual min, not that passed to ctor
55 virtual double getBinFrequency(int bin) const; 55 virtual double getBinFrequency(double bin) const;
56 56
57 // Input is the format produced by ConstantQ class, 57 // Input is the format produced by ConstantQ class,
58 // i.e. uninterpolated complex, not the real-valued stuff produced 58 // i.e. uninterpolated complex, not the real-valued stuff produced
59 // by CQSpectrogram 59 // by CQSpectrogram
60 60