Mercurial > hg > btrack
view modules-and-plug-ins/vamp-plugin/BTrackVamp.h @ 27:98f7a54faa0c develop
Changed all pointers to arrays in OnsetDetectionFunction into vectors
author | Adam <adamstark.uk@gmail.com> |
---|---|
date | Tue, 28 Jan 2014 00:19:21 +0000 |
parents | deb49a2590f3 |
children |
line wrap: on
line source
// This is a skeleton file for use in creating your own plugin // libraries. Replace MyPlugin and myPlugin throughout with the name // of your first plugin class, and fill in the gaps as appropriate. // Remember to use a different guard symbol in each header! #ifndef _BTRACK_VAMP_H_ #define _BTRACK_VAMP_H_ #include <vamp-sdk/Plugin.h> #include "../../src/BTrack.h" using std::string; class BTrackVamp : public Vamp::Plugin { public: BTrackVamp(float inputSampleRate); virtual ~BTrackVamp(); 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: // plugin-specific data and methods go here BTrack b; int m_stepSize; int m_blockSize; }; #endif