37 #ifndef _AMPLITUDE_FOLLOWER_PLUGIN_H_
38 #define _AMPLITUDE_FOLLOWER_PLUGIN_H_
53 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
std::vector< OutputDescriptor > OutputList
Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...
bool initialise(size_t channels, size_t stepSize, size_t blockSize)
Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
AmplitudeFollower(float inputSampleRate)
An implementation of SuperCollider's amplitude-follower algorithm as a simple Vamp plugin...
std::map< int, FeatureList > FeatureSet
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
InputDomain getInputDomain() const
Get the plugin's required input domain.
std::string getIdentifier() const
Get the computer-usable name of the plugin.
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
void reset()
Reset the plugin after use, to prepare it for another clean run.
std::string getName() const
Get a human-readable name or title of the plugin.
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.
ParameterList getParameterDescriptors() const
Get the controllable parameters of this plugin.
int getPluginVersion() const
Get the version number of the plugin.
void setParameter(std::string paramid, float newval)
Set a named parameter.
FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp)
Process a single block of input data.
virtual ~AmplitudeFollower()
Example plugin implementing the SuperCollider amplitude follower function.
float getParameter(std::string paramid) const
Get the value of a named parameter.
std::vector< ParameterDescriptor > ParameterList