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

A low/high pair of integers (a span the user dials at both ends). More...

#include <params.h>

Public Attributes

std::string_view name
 Display name shown in the settings UI.
int32_t min
 Lowest value either end reaches.
int32_t max
 Highest value either end reaches.
int32_t default_low
 Initial low end.
int32_t default_high
 Initial high end.
int32_t step = 1
 Increment between adjacent values.
uint8_t decimal_places = 0
 Fixed-point display digits. The stored values stay integers.
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 low/high pair of integers (a span the user dials at both ends).

Occupies two consecutive value slots. Read it back with param<>() as a std::pair, for example auto [lo, hi] = param<MyRange>();.


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