VampPluginSDK
2.10
|
PercussionOnsetDetector.cpp
Go to the documentation of this file.
97 return "Code copyright 2006 Queen Mary, University of London, after Dan Barry et al 2005. Freely redistributable (BSD license)";
248 // std::cout << "i=" << i << ", sqrmag=" << sqrmag << ", prior=" << m_priorMagnitudes[i] << ", diff=" << diff << ", threshold=" << m_threshold << " " << (diff >= m_threshold ? "[*]" : "") << std::endl;
267 //std::cout << "result at " << ts << "! (count == " << count << ", prev == " << m_dfMinus1 << ")" << std::endl;
FeatureSet getRemainingFeatures()
After all blocks have been processed, calculate and return any remaining features derived from the co...
Definition: PercussionOnsetDetector.cpp:283
std::string getIdentifier() const
Get the computer-usable name of the plugin.
Definition: PercussionOnsetDetector.cpp:65
OutputList getOutputDescriptors() const
Get the outputs of this plugin.
Definition: PercussionOnsetDetector.cpp:196
float sampleRate
Sample rate of the output results, as samples per second.
Definition: vamp-sdk/Plugin.h:314
bool hasFixedBinCount
True if the output has the same number of values per sample for every output sample.
Definition: vamp-sdk/Plugin.h:239
std::vector< float > values
Results for a single sample of this feature.
Definition: vamp-sdk/Plugin.h:382
float quantizeStep
Quantization resolution of the output values (e.g.
Definition: vamp-sdk/Plugin.h:285
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).
Definition: PercussionOnsetDetector.cpp:113
std::string identifier
The name of the parameter, in computer-usable form.
Definition: vamp-sdk/PluginBase.h:133
std::string description
A human-readable short text describing the output.
Definition: vamp-sdk/Plugin.h:227
std::string identifier
The name of the output, in computer-usable form.
Definition: vamp-sdk/Plugin.h:214
Definition: vamp-sdk/Plugin.h:344
std::string getMaker() const
Get the name of the author or vendor of the plugin in human-readable form.
Definition: PercussionOnsetDetector.cpp:83
std::string getCopyright() const
Get the copyright statement or licensing summary for the plugin.
Definition: PercussionOnsetDetector.cpp:95
std::string unit
The unit of the parameter, in human-readable form.
Definition: vamp-sdk/PluginBase.h:149
std::string getName() const
Get a human-readable name or title of the plugin.
Definition: PercussionOnsetDetector.cpp:71
ParameterList getParameterDescriptors() const
Get the controllable parameters of this plugin.
Definition: PercussionOnsetDetector.cpp:145
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...
Definition: vamp-sdk/RealTime.h:66
int getPluginVersion() const
Get the version number of the plugin.
Definition: PercussionOnsetDetector.cpp:89
std::string description
A human-readable short text describing the parameter.
Definition: vamp-sdk/PluginBase.h:144
size_t getPreferredBlockSize() const
Get the preferred block size (window size – the number of sample frames passed in each block to the ...
Definition: PercussionOnsetDetector.cpp:107
std::string getDescription() const
Get a human-readable description for the plugin, typically a line of text that may optionally be disp...
Definition: PercussionOnsetDetector.cpp:77
static RealTime frame2RealTime(long frame, unsigned int sampleRate)
Convert a sample frame at the given sample rate into a RealTime.
void reset()
Reset the plugin after use, to prepare it for another clean run.
Definition: PercussionOnsetDetector.cpp:134
size_t getPreferredStepSize() const
Get the preferred step size (window increment – the distance in sample frames between the start fram...
Definition: PercussionOnsetDetector.cpp:101
void setParameter(std::string id, float value)
Set a named parameter.
Definition: PercussionOnsetDetector.cpp:182
Results from each process() align with that call's block start.
Definition: vamp-sdk/Plugin.h:290
virtual size_t getMaxChannelCount() const
Get the maximum supported number of input channels.
Definition: vamp-sdk/Plugin.h:204
PercussionOnsetDetector(float inputSampleRate)
Definition: PercussionOnsetDetector.cpp:47
float getParameter(std::string id) const
Get the value of a named parameter.
Definition: PercussionOnsetDetector.cpp:174
bool isQuantized
True if the output values are quantized to a particular resolution.
Definition: vamp-sdk/Plugin.h:278
FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp)
Process a single block of input data.
Definition: PercussionOnsetDetector.cpp:226
virtual size_t getMinChannelCount() const
Get the minimum supported number of input channels.
Definition: vamp-sdk/Plugin.h:199
bool isQuantized
True if the parameter values are quantized to a particular resolution.
Definition: vamp-sdk/PluginBase.h:173
virtual ~PercussionOnsetDetector()
Definition: PercussionOnsetDetector.cpp:59
Results are unevenly spaced and have individual timestamps.
Definition: vamp-sdk/Plugin.h:296
bool hasKnownExtents
True if the results in each output bin fall within a fixed numeric range (minimum and maximum values)...
Definition: vamp-sdk/Plugin.h:260
std::vector< ParameterDescriptor > ParameterList
Definition: vamp-sdk/PluginBase.h:203
float * m_priorMagnitudes
Definition: PercussionOnsetDetector.h:84
Generated by 1.8.11