The incoming value range an OSC surface sends, and the normalized [0, 1] window it drives.
More...
#include <osc_parameter_map.hpp>
|
| float | apply (float value) const |
| | Map a raw OSC argument onto this window.
|
The incoming value range an OSC surface sends, and the normalized [0, 1] window it drives.
Defaults to the identity map for a 0..1 fader. out_min > out_max inverts; a degenerate incoming range pins to out_min.
◆ apply()
| float pulp::osc::OscMapScale::apply |
( |
float | value | ) |
const |
|
inline |
Map a raw OSC argument onto this window.
Input is clamped to the incoming range first, so the result always lies within the output window — and therefore within [0, 1], because both output endpoints are clamped there on insertion.
◆ in_max
| float pulp::osc::OscMapScale::in_max = 1.0f |
◆ in_min
| float pulp::osc::OscMapScale::in_min = 0.0f |
◆ out_max
| float pulp::osc::OscMapScale::out_max = 1.0f |
◆ out_min
| float pulp::osc::OscMapScale::out_min = 0.0f |
The documentation for this struct was generated from the following file: