Operator SDK
Build MIDI processing and UI modes for the Operator device
Loading...
Searching...
No Matches
op::params::Enum Struct Reference

A single choice from a fixed list of named options. More...

#include <params.h>

Public Attributes

std::string_view name
 Display name shown in the settings UI.
std::initializer_list< std::string_view > options
 Option labels in index order (the first is index 0).
int32_t default_ = 0
 Initial option, as a zero-based index into options.
uint8_t is_per_instance = 0
 Set to 1 to give each mode instance its own copy of this value (output modes only; ignored for global modes).
ParentRef parent = {}
 Optional Section this parameter nests under.
VisibleWhen visible_when = {}
 Optional gate that hides this parameter based on a sibling's value (see gate).

Detailed Description

A single choice from a fixed list of named options.

The stored value is the zero-based index of the chosen option. Read it back with param<>() as that index.


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