Vamp::PluginBase::ParameterDescriptor Struct Reference

#include <PluginBase.h>

List of all members.


Detailed Description

Definition at line 125 of file PluginBase.h.


Public Attributes

std::string identifier
 The name of the parameter, in computer-usable form.
std::string name
 The human-readable name of the parameter.
std::string description
 A human-readable short text describing the parameter.
std::string unit
 The unit of the parameter, in human-readable form.
float minValue
 The minimum value of the parameter.
float maxValue
 The maximum value of the parameter.
float defaultValue
 The default value of the parameter.
bool isQuantized
 True if the parameter values are quantized to a particular resolution.
float quantizeStep
 Quantization resolution of the parameter values (e.g.
std::vector< std::string > valueNames
 Names for the quantized values.

Member Data Documentation

The name of the parameter, in computer-usable form.

Should be reasonably short, and may only contain the characters [a-zA-Z0-9_].

Definition at line 132 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().

A human-readable short text describing the parameter.

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

Definition at line 143 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().

The unit of the parameter, in human-readable form.

Definition at line 148 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().

The default value of the parameter.

The plugin should ensure that parameters have this value on initialisation (i.e. the host is not required to explicitly set parameters if it wants to use their default values).

Definition at line 166 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().

True if the parameter values are quantized to a particular resolution.

Definition at line 172 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().

Quantization resolution of the parameter values (e.g.

1.0 if they are all integers). Undefined if isQuantized is false.

Definition at line 179 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors().

Names for the quantized values.

If isQuantized is true, this may either be empty or contain one string for each of the quantize steps from minValue up to maxValue inclusive. Undefined if isQuantized is false.

If these names are provided, they should be shown to the user in preference to the values themselves. The user may never see the actual numeric values unless they are also encoded in the names.

Definition at line 192 of file PluginBase.h.

Referenced by Vamp::PluginHostAdapter::getParameterDescriptors().


The documentation for this struct was generated from the following file:

Generated on Thu Jun 19 13:07:49 2008 for VampPluginSDK by  doxygen 1.5.5