c@35: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ c@35: c@35: #ifndef CQVAMP_H c@35: #define CQVAMP_H c@35: c@35: #include c@35: c@35: class ConstantQ; c@35: c@35: class CQVamp : public Vamp::Plugin c@35: { c@35: public: c@35: CQVamp(float inputSampleRate); c@35: virtual ~CQVamp(); c@35: c@35: bool initialise(size_t channels, size_t stepSize, size_t blockSize); c@35: void reset(); c@35: c@35: InputDomain getInputDomain() const { return TimeDomain; } c@35: c@35: std::string getIdentifier() const; c@35: std::string getName() const; c@35: std::string getDescription() const; c@35: std::string getMaker() const; c@35: int getPluginVersion() const; c@35: std::string getCopyright() const; c@35: c@35: ParameterList getParameterDescriptors() const; c@35: float getParameter(std::string) const; c@35: void setParameter(std::string, float); c@35: c@35: size_t getPreferredStepSize() const; c@35: size_t getPreferredBlockSize() const; c@35: c@35: OutputList getOutputDescriptors() const; c@35: c@35: FeatureSet process(const float *const *inputBuffers, c@35: Vamp::RealTime timestamp); c@35: c@35: FeatureSet getRemainingFeatures(); c@35: c@35: protected: c@55: int m_minMIDIPitch; c@55: int m_maxMIDIPitch; c@55: float m_tuningFrequency; c@55: int m_bpo; c@55: c@35: ConstantQ *m_cq; c@35: float m_maxFrequency; c@35: float m_minFrequency; c@35: int m_stepSize; c@35: int m_blockSize; c@36: c@53: Vamp::RealTime m_startTime; c@53: bool m_haveStartTime; c@53: int m_columnCount; c@53: c@36: std::vector m_prevFeature; c@36: FeatureSet convertToFeatures(const std::vector > &); c@35: }; c@35: c@35: c@35: #endif