Mercurial > hg > azi
view Azi.h @ 35:299df1b44eff tip
Note source code available
author | Chris Cannam |
---|---|
date | Fri, 15 May 2020 09:40:50 +0100 |
parents | 844b318649b8 |
children |
line wrap: on
line source
#ifndef AZI_H #define AZI_H #include <vamp-sdk/Plugin.h> using std::string; class Azi : public Vamp::Plugin { public: Azi(float inputSampleRate); virtual ~Azi(); 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_channels; int m_width; int m_blockSize; float rms(const std::vector<float> &); }; #endif