Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::host::ForgeParamChoice Struct Reference

One named state of a stepped parameter. More...

#include <forge_param_descriptor.hpp>

Public Member Functions

 ForgeParamChoice ()=default
 ForgeParamChoice (std::string_view token_in, std::string_view label_in, float value_in, std::vector< std::string_view > modes_in={})

Public Attributes

std::string_view token
std::string_view label
float value = 0.0f
std::vector< std::string_view > realization_modes
 Empty means the choice is valid wherever its parameter is valid.

Detailed Description

One named state of a stepped parameter.

token is the stable machine key and must never change; label is presentation and may.

Constructor & Destructor Documentation

◆ ForgeParamChoice() [1/2]

pulp::host::ForgeParamChoice::ForgeParamChoice ( )
default

◆ ForgeParamChoice() [2/2]

pulp::host::ForgeParamChoice::ForgeParamChoice ( std::string_view token_in,
std::string_view label_in,
float value_in,
std::vector< std::string_view > modes_in = {} )
inline

Member Data Documentation

◆ label

std::string_view pulp::host::ForgeParamChoice::label

◆ realization_modes

std::vector<std::string_view> pulp::host::ForgeParamChoice::realization_modes

Empty means the choice is valid wherever its parameter is valid.

Otherwise it is offered only by these realization modes.

◆ token

std::string_view pulp::host::ForgeParamChoice::token

◆ value

float pulp::host::ForgeParamChoice::value = 0.0f

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