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

SpectralCentroid Class Reference

#include <SpectralCentroid.h>

Inheritance diagram for SpectralCentroid:

Vamp::Plugin Vamp::PluginBase

List of all members.

Detailed Description

Example plugin that calculates the centre of gravity of the frequency domain representation of each block of audio.

Definition at line 47 of file SpectralCentroid.h.

Public Types

typedef std::vector< Feature > FeatureList
typedef std::map< int,
FeatureList > 
enum  InputDomain { TimeDomain, FrequencyDomain }
typedef std::vector
< OutputDescriptor > 
typedef std::vector
< ParameterDescriptor > 
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
virtual float getParameter (std::string) const
virtual ParameterList getParameterDescriptors () const
int getPluginVersion () const
virtual size_t getPreferredBlockSize () const
virtual 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)
FeatureSet process (const float *const *inputBuffers, Vamp::RealTime timestamp)
void reset ()
virtual void selectProgram (std::string)
virtual void setParameter (std::string, float)
 SpectralCentroid (float inputSampleRate)

Protected Attributes

size_t m_blockSize
float m_inputSampleRate
size_t m_stepSize

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

Generated by  Doxygen 1.6.0   Back to index