VampPluginSDK
2.1
|
#include <PluginBase.h>
Public Member Functions | |
ParameterDescriptor () | |
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. |
Definition at line 130 of file vamp-sdk/PluginBase.h.
Vamp::PluginBase::ParameterDescriptor::ParameterDescriptor | ( | ) | [inline] |
Definition at line 199 of file vamp-sdk/PluginBase.h.
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 137 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().
std::string Vamp::PluginBase::ParameterDescriptor::name |
The human-readable name of the parameter.
Definition at line 142 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::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 148 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().
std::string Vamp::PluginBase::ParameterDescriptor::unit |
The unit of the parameter, in human-readable form.
Definition at line 153 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().
The minimum value of the parameter.
Definition at line 158 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().
The maximum value of the parameter.
Definition at line 163 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::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 171 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::getParameterDescriptors(), PercussionOnsetDetector::getParameterDescriptors(), and AmplitudeFollower::getParameterDescriptors().
True if the parameter values are quantized to a particular resolution.
Definition at line 177 of file vamp-sdk/PluginBase.h.
Referenced by FixedTempoEstimator::D::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 184 of file vamp-sdk/PluginBase.h.
std::vector<std::string> Vamp::PluginBase::ParameterDescriptor::valueNames |
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 197 of file vamp-sdk/PluginBase.h.