37 #ifndef _FIXED_TEMPO_ESTIMATOR_PLUGIN_H_ 38 #define _FIXED_TEMPO_ESTIMATOR_PLUGIN_H_ 52 bool initialise(
size_t channels,
size_t stepSize,
size_t blockSize);
std::vector< OutputDescriptor > OutputList
Chris@6:
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start fram...
Chris@6:
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
Chris@6:
Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...
Chris@6:
Chris@6:
FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp)
Process a single block of input data.
Chris@6:
Chris@6:
virtual ~FixedTempoEstimator()
Chris@6:
std::map< int, FeatureList > FeatureSet
Chris@6:
float getParameter(std::string id) const
Get the value of a named parameter.
Chris@6:
InputDomain getInputDomain() const
Get the plugin's required input domain.
Chris@6:
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
Chris@6:
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.
Chris@6:
void reset()
Reset the plugin after use, to prepare it for another clean run.
Chris@6:
std::string getName() const
Get a human-readable name or title of the plugin.
Chris@6:
Chris@6:
Example plugin that estimates the tempo of a short fixed-tempo sample.
Chris@6:
std::string getIdentifier() const
Get the computer-usable name of the plugin.
Chris@6:
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
Chris@6:
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
Chris@6:
void setParameter(std::string id, float value)
Set a named parameter.
Chris@6:
size_t getPreferredBlockSize() const
Get the preferred block size (window size – the number of sample frames passed in each block to the ...
Chris@6:
Chris@6:
ParameterList getParameterDescriptors() const
Get the controllable parameters of this plugin.
Chris@6:
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
Chris@6:
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).
Chris@6:
Chris@6:
int getPluginVersion() const
Get the version number of the plugin.
Chris@6:
FixedTempoEstimator(float inputSampleRate)
Chris@6:
std::vector< ParameterDescriptor > ParameterList
Chris@6: