annotate vamp/CQVamp.h @ 35:75d528478feb

Add Vamp plugin for testing with
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 06 Nov 2013 14:30:42 +0000
parents
children cb072f01435b
rev   line source
c@35 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@35 2
c@35 3 #ifndef CQVAMP_H
c@35 4 #define CQVAMP_H
c@35 5
c@35 6 #include <vamp-sdk/Plugin.h>
c@35 7
c@35 8 class ConstantQ;
c@35 9
c@35 10 class CQVamp : public Vamp::Plugin
c@35 11 {
c@35 12 public:
c@35 13 CQVamp(float inputSampleRate);
c@35 14 virtual ~CQVamp();
c@35 15
c@35 16 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
c@35 17 void reset();
c@35 18
c@35 19 InputDomain getInputDomain() const { return TimeDomain; }
c@35 20
c@35 21 std::string getIdentifier() const;
c@35 22 std::string getName() const;
c@35 23 std::string getDescription() const;
c@35 24 std::string getMaker() const;
c@35 25 int getPluginVersion() const;
c@35 26 std::string getCopyright() const;
c@35 27
c@35 28 ParameterList getParameterDescriptors() const;
c@35 29 float getParameter(std::string) const;
c@35 30 void setParameter(std::string, float);
c@35 31
c@35 32 size_t getPreferredStepSize() const;
c@35 33 size_t getPreferredBlockSize() const;
c@35 34
c@35 35 OutputList getOutputDescriptors() const;
c@35 36
c@35 37 FeatureSet process(const float *const *inputBuffers,
c@35 38 Vamp::RealTime timestamp);
c@35 39
c@35 40 FeatureSet getRemainingFeatures();
c@35 41
c@35 42 protected:
c@35 43 ConstantQ *m_cq;
c@35 44 float m_maxFrequency;
c@35 45 float m_minFrequency;
c@35 46 int m_bpo;
c@35 47 int m_stepSize;
c@35 48 int m_blockSize;
c@35 49 };
c@35 50
c@35 51
c@35 52 #endif