#include <DistrhoPlugin.hpp>
Default constructor for a null parameter.
Parameter::Parameter |
( |
uint32_t |
h, |
|
|
const char * |
n, |
|
|
const char * |
s, |
|
|
const char * |
u, |
|
|
float |
def, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
|
inlinenoexcept |
Constructor using custom values.
Initialize a parameter for a specific designation.
uint32_t Parameter::hints |
The name of this parameter.
A parameter name can contain any character, but hosts might have a hard time with non-ascii ones.
The name doesn't have to be unique within a plugin instance, but it's recommended.
The symbol of this parameter.
A parameter symbol is a short restricted name used as a machine and human readable identifier.
The first character must be one of _, a-z or A-Z and subsequent characters can be from _, a-z, A-Z and 0-9.
- Note
- Parameter symbols MUST be unique within a plugin instance.
The unit of this parameter.
This means something like "dB", "kHz" and "ms".
Can be left blank if a unit does not apply to this parameter.
Ranges of this parameter.
The ranges describe the default, minimum and maximum values.
Enumeration values.
Can be used to give meaning to parameter values, working as an enumeration.
Designation for this parameter.
uint8_t Parameter::midiCC |
MIDI CC to use by default on this parameter.
A value of 0 or 32 (bank change) is considered invalid.
Must also be less or equal to 120.
- Note
- This value is only a hint! Hosts might map it automatically or completely ignore it.
The documentation for this struct was generated from the following file: