|
float | minf_ = 0.f |
| Minimum, maximum and zero values for this port.
|
float | maxf_ = 1.f |
float | zerof_ = 0.f |
| The zero position of the port.
|
Definition at line 24 of file port.h.
◆ PortRange()
PortRange::PortRange |
( |
float | min, |
|
|
float | max, |
|
|
float | zero = 0.f ) |
|
inline |
◆ clamp_to_range()
float PortRange::clamp_to_range |
( |
float | val | ) |
const |
|
inline |
◆ from_json
void from_json |
( |
const nlohmann::json & | j, |
|
|
PortRange & | p ) |
|
friend |
◆ to_json
void to_json |
( |
nlohmann::json & | j, |
|
|
const PortRange & | p ) |
|
friend |
◆ maxf_
float PortRange::maxf_ = 1.f |
◆ minf_
float PortRange::minf_ = 0.f |
Minimum, maximum and zero values for this port.
Note that for audio, this is the amplitude (0 - 2) and not the actual values.
Definition at line 63 of file port.h.
◆ zerof_
float PortRange::zerof_ = 0.f |
The zero position of the port.
For example, in balance controls, this will be the middle. In audio ports, this will be 0 amp (silence), etc.
Definition at line 72 of file port.h.
The documentation for this class was generated from the following file: