24 #include <vamp-sdk/Plugin.h> 79 Energy(
float inputSampleRate);
81 string getIdentifier()
const;
82 string getName()
const;
83 string getDescription()
const;
84 string getMaker()
const;
85 int getPluginVersion()
const;
86 string getCopyright()
const;
87 InputDomain getInputDomain()
const;
88 size_t getPreferredBlockSize()
const;
89 size_t getPreferredStepSize()
const;
90 size_t getMinChannelCount()
const;
91 size_t getMaxChannelCount()
const;
92 ParameterList getParameterDescriptors()
const;
93 float getParameter(
string identifier)
const;
94 void setParameter(
string identifier,
96 ProgramList getPrograms()
const;
97 string getCurrentProgram()
const;
98 void selectProgram(
string name);
99 OutputList getOutputDescriptors()
const;
100 bool initialise(
size_t channels,
104 FeatureSet process(
const float *
const *inputBuffers,
105 Vamp::RealTime timestamp);
106 FeatureSet getRemainingFeatures();
111 int m_blockSize, m_stepSize;
float sampleRate
Definition: Energy.h:114
float prevRMS
Definition: Energy.h:118
float dipThresh
Definition: Energy.h:121
vector< float > rmsEnergy
Definition: Energy.h:117
float avgWindowLength
Definition: Energy.h:119
Calculates the RMS energy and related features.
Definition: Energy.h:75
float avgPercentile
Definition: Energy.h:120
float threshRatio
Definition: Energy.h:116
bool useRoot
Definition: Energy.h:115