|
Vital
|
Maintains a lookup table for all parameters defined in Vital. More...
#include <synth_parameters.h>
Public Member Functions | |
| ValueDetailsLookup () | |
| Constructs a ValueDetailsLookup and initializes its parameter tables. | |
| const bool | isParameter (const std::string &name) const |
| Checks if a given name corresponds to a known parameter. | |
| const ValueDetails & | getDetails (const std::string &name) const |
| Retrieves ValueDetails for a given parameter name. | |
| const ValueDetails * | getDetails (int index) const |
| Retrieves ValueDetails by parameter index. | |
| std::string | getDisplayName (const std::string &name) const |
| Gets a human-readable display name for a parameter. | |
| int | getNumParameters () const |
| Gets the number of parameters defined. | |
| mono_float | getParameterRange (const std::string &name) const |
| Gets the full parameter range (max - min). | |
| std::map< std::string, ValueDetails > | getAllDetails () const |
| Returns a copy of all parameter details in a map. | |
| void | addParameterGroup (const ValueDetails *list, int num_parameters, int index, std::string id_prefix, std::string name_prefix, int version=-1) |
| Adds a group of parameters, each with prefixed names and display names. | |
| void | addParameterGroup (const ValueDetails *list, int num_parameters, std::string id, std::string id_prefix, std::string name_prefix, int version=-1) |
| Adds a group of parameters using a string-based ID rather than numeric index. | |
Static Public Attributes | |
| static const ValueDetails | parameter_list [] |
| static const ValueDetails | env_parameter_list [] |
| static const ValueDetails | lfo_parameter_list [] |
| static const ValueDetails | random_lfo_parameter_list [] |
| static const ValueDetails | filter_parameter_list [] |
| static const ValueDetails | osc_parameter_list [] |
| static const ValueDetails | mod_parameter_list [] |
Maintains a lookup table for all parameters defined in Vital.
ValueDetailsLookup stores and indexes all parameter metadata (ValueDetails) used by the synthesizer. It supports:
| vital::ValueDetailsLookup::ValueDetailsLookup | ( | ) |
Constructs a ValueDetailsLookup and initializes its parameter tables.
Loads predefined parameters and organizes them into lookup tables.
| void vital::ValueDetailsLookup::addParameterGroup | ( | const ValueDetails * | list, |
| int | num_parameters, | ||
| int | index, | ||
| std::string | id_prefix, | ||
| std::string | name_prefix, | ||
| int | version = -1 ) |
Adds a group of parameters, each with prefixed names and display names.
Used to create sets of parameters for envelopes, LFOs, oscillators, etc.
| list | Array of ValueDetails to add. |
| num_parameters | Number of parameters in the list. |
| index | Index to append to parameter names and display names. |
| id_prefix | Prefix for ID (e.g., "env", "lfo"). |
| name_prefix | Prefix for display name (e.g., "Envelope", "LFO"). |
| version | Optional version override if these parameters were added/modified later. |
| void vital::ValueDetailsLookup::addParameterGroup | ( | const ValueDetails * | list, |
| int | num_parameters, | ||
| std::string | id, | ||
| std::string | id_prefix, | ||
| std::string | name_prefix, | ||
| int | version = -1 ) |
Adds a group of parameters using a string-based ID rather than numeric index.
| list | Array of ValueDetails to add. |
| num_parameters | Number of parameters in the list. |
| id | A string ID to append. |
| id_prefix | Prefix for ID. |
| name_prefix | Prefix for display name. |
| version | Optional version override. |
|
inline |
Returns a copy of all parameter details in a map.
|
inline |
Retrieves ValueDetails for a given parameter name.
| name | The parameter name. |
|
inline |
Retrieves ValueDetails by parameter index.
| index | The parameter index (based on loading order). |
|
inline |
Gets a human-readable display name for a parameter.
| name | The parameter name. |
|
inline |
Gets the number of parameters defined.
|
inline |
Gets the full parameter range (max - min).
| name | The parameter name. |
|
inline |
Checks if a given name corresponds to a known parameter.
| name | The parameter name to check. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |