Vital
|
Holds metadata about a single parameter (control) in the Vital synthesizer. More...
#include <synth_parameters.h>
Public Types | |
enum | ValueScale { kIndexed , kLinear , kQuadratic , kCubic , kQuartic , kSquareRoot , kExponential } |
Describes the scaling mode used to interpret and display parameter values. More... | |
Public Attributes | |
std::string | name |
Unique parameter name/identifier. | |
int | version_added = 0 |
Version code when the parameter was introduced or changed. | |
mono_float | min = 0.0f |
Minimum parameter value. | |
mono_float | max = 1.0f |
Maximum parameter value. | |
mono_float | default_value = 0.0f |
Default value for the parameter. | |
mono_float | post_offset = 0.0f |
Offset applied after scaling (for certain scale types). | |
mono_float | display_multiply = 1.0f |
Multiplier for converting internal values to display units. | |
ValueScale | value_scale = kLinear |
The scaling mode of the parameter value. | |
bool | display_invert = false |
If true, invert the displayed value range. | |
std::string | display_units |
Units to display next to the parameter (e.g., "Hz", "dB"). | |
std::string | display_name |
Human-readable name for display in UI. | |
const std::string * | string_lookup = nullptr |
Optional lookup table for indexed parameter names. | |
std::string | local_description |
Local description or additional metadata. | |
Holds metadata about a single parameter (control) in the Vital synthesizer.
The ValueDetails structure describes how a parameter should be scaled, displayed, and interpreted. This includes minimum/maximum values, default values, display names, units, and the scaling function to apply (linear, exponential, etc.). It also supports indexed parameters for stepping through discrete values (e.g., enumeration fields).
Describes the scaling mode used to interpret and display parameter values.
mono_float vital::ValueDetails::default_value = 0.0f |
Default value for the parameter.
bool vital::ValueDetails::display_invert = false |
If true, invert the displayed value range.
mono_float vital::ValueDetails::display_multiply = 1.0f |
Multiplier for converting internal values to display units.
std::string vital::ValueDetails::display_name |
Human-readable name for display in UI.
std::string vital::ValueDetails::display_units |
Units to display next to the parameter (e.g., "Hz", "dB").
std::string vital::ValueDetails::local_description |
Local description or additional metadata.
mono_float vital::ValueDetails::max = 1.0f |
Maximum parameter value.
mono_float vital::ValueDetails::min = 0.0f |
Minimum parameter value.
std::string vital::ValueDetails::name |
Unique parameter name/identifier.
mono_float vital::ValueDetails::post_offset = 0.0f |
Offset applied after scaling (for certain scale types).
const std::string* vital::ValueDetails::string_lookup = nullptr |
Optional lookup table for indexed parameter names.
ValueScale vital::ValueDetails::value_scale = kLinear |
The scaling mode of the parameter value.
int vital::ValueDetails::version_added = 0 |
Version code when the parameter was introduced or changed.