Mercurial > hg > lowfreq
diff LowFreq.h @ 0:b26975f6a1f1
Initial commit with skeleton code
author | Chris Cannam |
---|---|
date | Mon, 03 Mar 2014 16:35:27 +0000 |
parents | |
children | a84bae4ee627 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LowFreq.h Mon Mar 03 16:35:27 2014 +0000 @@ -0,0 +1,53 @@ +#ifndef _LOWFREQ_H_ +#define _LOWFREQ_H_ + +#include <vamp-sdk/Plugin.h> + +using std::string; + + +class LowFreq : public Vamp::Plugin +{ +public: + LowFreq(float inputSampleRate); + virtual ~LowFreq(); + + 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: + float m_pShort; + float m_pLong; +}; + + + +#endif