cannam@50: cannam@50: cannam@50: cannam@50: cannam@0: VampPluginSDK: Vamp::PluginBase Class Reference cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50:
cannam@50: cannam@50: cannam@50:
cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50:
cannam@50:
VampPluginSDK cannam@50:  2.1 cannam@50:
cannam@50: cannam@50:
cannam@50:
cannam@50: cannam@50: cannam@50: cannam@50: cannam@50:
cannam@50:
cannam@50: cannam@50:
cannam@0:
cannam@0:
cannam@50: cannam@50:
cannam@50:
cannam@50:
cannam@50: Classes | cannam@50: Public Types | cannam@50: Public Member Functions
cannam@50:
cannam@50:
Vamp::PluginBase Class Reference
cannam@50:
cannam@0:
cannam@50: cannam@50:

A base class for plugins with optional configurable parameters, programs, etc. cannam@50: More...

cannam@50: cannam@50:

#include <PluginBase.h>

cannam@0:
cannam@0: Inheritance diagram for Vamp::PluginBase:
cannam@50:
cannam@50:
Inheritance graph
cannam@50: cannam@50: cannam@50:
[legend]
cannam@0: cannam@50:

List of all members.

cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50: cannam@50:

cannam@50: Classes

struct  ParameterDescriptor

cannam@50: Public Types

typedef std::vector
cannam@50: < ParameterDescriptor
ParameterList
typedef std::vector< std::string > ProgramList

cannam@50: Public Member Functions

virtual ~PluginBase ()
virtual unsigned int getVampApiVersion () const
 Get the Vamp API compatibility level of the plugin.
virtual std::string getIdentifier () const =0
 Get the computer-usable name of the plugin.
virtual std::string getName () const =0
 Get a human-readable name or title of the plugin.
virtual std::string getDescription () const =0
 Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name".
virtual std::string getMaker () const =0
 Get the name of the author or vendor of the plugin in human-readable form.
virtual std::string getCopyright () const =0
 Get the copyright statement or licensing summary for the plugin.
virtual int getPluginVersion () const =0
 Get the version number of the plugin.
virtual ParameterList getParameterDescriptors () const
 Get the controllable parameters of this plugin.
virtual float getParameter (std::string) const
 Get the value of a named parameter.
virtual void setParameter (std::string, float)
 Set a named parameter.
virtual ProgramList getPrograms () const
 Get the program settings available in this plugin.
virtual std::string getCurrentProgram () const
 Get the current program.
virtual void selectProgram (std::string)
 Select a program.
virtual std::string getType () const =0
 Get the type of plugin.
cannam@50:

Detailed Description

cannam@50:

A base class for plugins with optional configurable parameters, programs, etc.

cannam@50:

The Vamp::Plugin is derived from this, and individual Vamp plugins should derive from that.

cannam@50:

This class does not provide the necessary interfaces to instantiate or run a plugin. It only specifies an interface for retrieving those controls that the host may wish to show to the user for editing. It could meaningfully be subclassed by real-time plugins or other sorts of plugin as well as Vamp plugins.

cannam@35: cannam@50:

Definition at line 64 of file vamp-sdk/PluginBase.h.

cannam@50:

Member Typedef Documentation

cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@0:
typedef std::vector<ParameterDescriptor> Vamp::PluginBase::ParameterList
cannam@0:
cannam@0:
cannam@0: cannam@50:

Definition at line 203 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@0:
typedef std::vector<std::string> Vamp::PluginBase::ProgramList
cannam@0:
cannam@0:
cannam@0: cannam@50:

Definition at line 225 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50:

Constructor & Destructor Documentation

cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual Vamp::PluginBase::~PluginBase () [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Definition at line 67 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50:

Member Function Documentation

cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual unsigned int Vamp::PluginBase::getVampApiVersion () const [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the Vamp API compatibility level of the plugin.

cannam@0: cannam@50:

Reimplemented in Vamp::PluginHostAdapter, and Vamp::HostExt::PluginWrapper.

cannam@0: cannam@50:

Definition at line 72 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@50:

Referenced by enumeratePlugins().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getIdentifier () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the computer-usable name of the plugin.

cannam@50:

This should be reasonably short and contain no whitespace or punctuation characters. It may only contain the characters [a-zA-Z0-9_-]. This is the authoritative way for a program to identify a plugin within a given library.

cannam@50:

This text may be visible to the user, but it should not be the main text used to identify a plugin to the user (that will be the name, below).

cannam@50:

Example: "zero_crossings"

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Referenced by enumeratePlugins(), and runPlugin().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getName () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get a human-readable name or title of the plugin.

cannam@50:

This should be brief and self-contained, as it may be used to identify the plugin to the user in isolation (i.e. without also showing the plugin's "identifier").

cannam@50:

Example: "Zero Crossings"

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Referenced by enumeratePlugins(), and printPluginCategoryList().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getDescription () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name".

cannam@50:

May be empty if the name has said it all already.

cannam@50:

Example: "Detect and count zero crossing points"

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Referenced by enumeratePlugins(), and printPluginCategoryList().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getMaker () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the name of the author or vendor of the plugin in human-readable form.

cannam@50:

This should be a short identifying text, as it may be used to label plugins from the same source in a menu or similar.

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Referenced by enumeratePlugins(), and printPluginCategoryList().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getCopyright () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the copyright statement or licensing summary for the plugin.

cannam@50:

This can be an informative text, without the same presentation constraints as mentioned for getMaker above.

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Referenced by enumeratePlugins().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual int Vamp::PluginBase::getPluginVersion () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the version number of the plugin.

cannam@0: cannam@50:

Implemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, PowerSpectrum, AmplitudeFollower, SpectralCentroid, ZeroCrossing, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@0: cannam@50:

Referenced by enumeratePlugins().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual ParameterList Vamp::PluginBase::getParameterDescriptors () const [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the controllable parameters of this plugin.

cannam@0: cannam@50:

Reimplemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, AmplitudeFollower, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@0: cannam@50:

Definition at line 208 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@50:

Referenced by enumeratePlugins().

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@50: cannam@21: cannam@0: cannam@0:
virtual float Vamp::PluginBase::getParameter (std::string ) const [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the value of a named parameter.

cannam@50:

The argument is the identifier field from that parameter's descriptor.

cannam@0: cannam@50:

Reimplemented in Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, AmplitudeFollower, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Definition at line 216 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@0: cannam@0: cannam@0: cannam@0: cannam@0: cannam@50: cannam@50: cannam@0: cannam@0: cannam@0: cannam@0: cannam@50: cannam@0: cannam@0:
virtual void Vamp::PluginBase::setParameter (std::string ,
float  
) [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Set a named parameter.

cannam@50:

The first argument is the identifier field from that parameter's descriptor.

cannam@0: cannam@50:

Reimplemented in Vamp::HostExt::PluginBufferingAdapter, Vamp::PluginHostAdapter, Vamp::HostExt::PluginWrapper, AmplitudeFollower, FixedTempoEstimator, and PercussionOnsetDetector.

cannam@50: cannam@50:

Definition at line 222 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual ProgramList Vamp::PluginBase::getPrograms () const [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the program settings available in this plugin.

cannam@50:

A program is a named shorthand for a set of parameter values; changing the program may cause the plugin to alter the values of its published parameters (and/or non-public internal processing parameters). The host should re-read the plugin's parameter values after setting a new program.

cannam@50:

The programs must have unique names.

cannam@0: cannam@50:

Reimplemented in Vamp::PluginHostAdapter, and Vamp::HostExt::PluginWrapper.

cannam@50: cannam@50:

Definition at line 237 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getCurrentProgram () const [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the current program.

cannam@0: cannam@50:

Reimplemented in Vamp::PluginHostAdapter, and Vamp::HostExt::PluginWrapper.

cannam@0: cannam@50:

Definition at line 242 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@50: cannam@21: cannam@0: cannam@0:
virtual void Vamp::PluginBase::selectProgram (std::string ) [inline, virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Select a program.

cannam@50:

(If the given program name is not one of the available programs, do nothing.)

cannam@0: cannam@50:

Reimplemented in Vamp::HostExt::PluginBufferingAdapter, Vamp::PluginHostAdapter, and Vamp::HostExt::PluginWrapper.

cannam@50: cannam@50:

Definition at line 248 of file vamp-sdk/PluginBase.h.

cannam@0: cannam@0:
cannam@50:
cannam@50: cannam@0:
cannam@0:
cannam@0: cannam@0: cannam@50: cannam@0: cannam@50: cannam@21: cannam@0: cannam@0:
virtual std::string Vamp::PluginBase::getType () const [pure virtual]
cannam@0:
cannam@0:
cannam@0: cannam@50:

Get the type of plugin.

cannam@50:

This is to be implemented by the immediate subclass, not by actual plugins. Do not attempt to implement this in plugin code.

cannam@50: cannam@50:

Implemented in Vamp::Plugin.

cannam@0: cannam@0:
cannam@0:
cannam@50:
The documentation for this class was generated from the following file: cannam@50:
cannam@50:
cannam@50: cannam@50: cannam@50: cannam@0: cannam@0: