Mercurial > hg > tipic
view src/PitchFilterbank.h @ 15:368bb5a1b4bf
Don't carry out expensive construction in the Vamp plugin ctor. Add tuning freq parameter (not implemented yet though)
author | Chris Cannam |
---|---|
date | Mon, 17 Aug 2015 15:51:13 +0100 |
parents | fa87ce20fe8c |
children | 51eb8b1a1910 |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #ifndef PITCH_FILTERBANK_H #define PITCH_FILTERBANK_H #include <vector> class PitchFilterbank { public: PitchFilterbank(int sampleRate, float tuningFrequency); ~PitchFilterbank(); /// A series of real-valued samples ordered in time. typedef std::vector<double> RealSequence; /// A series of real-valued samples ordered by bin (frequency or similar). typedef std::vector<double> RealColumn; /// A matrix of real-valued samples, indexed by time then bin number. typedef std::vector<RealColumn> RealBlock; void reset(); RealBlock process(const RealSequence &); RealBlock getRemainingOutput(); private: class D; D *m_d; PitchFilterbank(const PitchFilterbank &); // not supplied PitchFilterbank &operator=(const PitchFilterbank &); // not supplied }; #endif