Mercurial > hg > chp
diff ConstrainedHarmonicPeak.h @ 0:f559ab000b67
Initial skeleton
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 14:34:50 +0000 |
parents | |
children | ab0b04e1c56b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ConstrainedHarmonicPeak.h Fri Mar 07 14:34:50 2014 +0000 @@ -0,0 +1,53 @@ +#ifndef CONSTRAINEDHARMONICPEAK_H +#define CONSTRAINEDHARMONICPEAK_H + +#include <vamp-sdk/Plugin.h> + +using std::string; + +class ConstrainedHarmonicPeak : public Vamp::Plugin +{ +public: + ConstrainedHarmonicPeak(float inputSampleRate); + virtual ~ConstrainedHarmonicPeak(); + + string getIdentifier() const; + string getName() const; + string getDescription() const; + string getMaker() const; + int getPluginVersion() const; + string getCopyright() const; + + InputDomain getInputDomain() const; + size_t getPreferredBlockSize() const; + size_t getPreferredStepSize() const; + size_t getMinChannelCount() const; + size_t getMaxChannelCount() const; + + ParameterList getParameterDescriptors() const; + float getParameter(string identifier) const; + void setParameter(string identifier, float value); + + ProgramList getPrograms() const; + string getCurrentProgram() const; + void selectProgram(string name); + + OutputList getOutputDescriptors() const; + + bool initialise(size_t channels, size_t stepSize, size_t blockSize); + void reset(); + + FeatureSet process(const float *const *inputBuffers, + Vamp::RealTime timestamp); + + FeatureSet getRemainingFeatures(); + +protected: + int m_blockSize; + float m_minFreq; + float m_maxFreq; +}; + + + +#endif