Go to the documentation of this file.
37 #ifndef _SPECTRAL_CENTROID_PLUGIN_H_
38 #define _SPECTRAL_CENTROID_PLUGIN_H_
53 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
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,...
Example plugin that calculates the centre of gravity of the frequency domain representation of each b...
virtual ~SpectralCentroid()
int getPluginVersion() const
Get the version number of the plugin.
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.
SpectralCentroid(float inputSampleRate)
InputDomain getInputDomain() const
Get the plugin's required input domain.
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
std::vector< OutputDescriptor > OutputList
std::string getIdentifier() const
Get the computer-usable name of the plugin.
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp)
Process a single block of input data.
std::map< int, FeatureList > FeatureSet
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.