Go to the documentation of this file.
37 #ifndef _PERCUSSION_ONSET_DETECTOR_PLUGIN_H_
38 #define _PERCUSSION_ONSET_DETECTOR_PLUGIN_H_
52 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
PercussionOnsetDetector(float inputSampleRate)
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
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,...
FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp)
Process a single block of input data.
std::string getIdentifier() const
Get the computer-usable name of the plugin.
size_t getPreferredBlockSize() const
Get the preferred block size (window size – the number of sample frames passed in each block to the p...
virtual ~PercussionOnsetDetector()
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
ParameterList getParameterDescriptors() const
Get the controllable parameters of this plugin.
InputDomain getInputDomain() const
Get the plugin's required input domain.
std::string getName() const
Get a human-readable name or title of the plugin.
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start frame...
Example plugin that detects percussive events.
std::vector< OutputDescriptor > OutputList
float getParameter(std::string id) const
Get the value of a named parameter.
void reset()
Reset the plugin after use, to prepare it for another clean run.
std::vector< ParameterDescriptor > ParameterList
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.
int getPluginVersion() const
Get the version number of the plugin.
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
float * m_priorMagnitudes
void setParameter(std::string id, float value)
Set a named parameter.
std::map< int, FeatureList > FeatureSet