Logo Search packages:      
Sourcecode: vamp-plugin-sdk version File versions  Download package

PercussionOnsetDetector Class Reference

#include <PercussionOnsetDetector.h>

Inheritance diagram for PercussionOnsetDetector:

Vamp::Plugin Vamp::PluginBase

List of all members.


Detailed Description

Example plugin that detects percussive events.

Definition at line 46 of file PercussionOnsetDetector.h.


Public Types

typedef std::vector< Feature > FeatureList
typedef std::map< int,
FeatureList > 
FeatureSet
enum  InputDomain { TimeDomain, FrequencyDomain }
typedef std::vector
< OutputDescriptor > 
OutputList
typedef std::vector
< ParameterDescriptor > 
ParameterList
typedef std::vector< std::string > ProgramList

Public Member Functions

std::string getCopyright () const
virtual std::string getCurrentProgram () const
std::string getDescription () const
std::string getIdentifier () const
InputDomain getInputDomain () const
std::string getMaker () const
virtual size_t getMaxChannelCount () const
virtual size_t getMinChannelCount () const
std::string getName () const
OutputList getOutputDescriptors () const
float getParameter (std::string id) const
ParameterList getParameterDescriptors () const
int getPluginVersion () const
size_t getPreferredBlockSize () const
size_t getPreferredStepSize () const
virtual ProgramList getPrograms () const
FeatureSet getRemainingFeatures ()
virtual std::string getType () const
virtual unsigned int getVampApiVersion () const
bool initialise (size_t channels, size_t stepSize, size_t blockSize)
 PercussionOnsetDetector (float inputSampleRate)
FeatureSet process (const float *const *inputBuffers, Vamp::RealTime timestamp)
void reset ()
virtual void selectProgram (std::string)
void setParameter (std::string id, float value)

Protected Attributes

size_t m_blockSize
float m_dfMinus1
float m_dfMinus2
float m_inputSampleRate
float * m_priorMagnitudes
float m_sensitivity
size_t m_stepSize
float m_threshold

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index