Normalized [0, 1] output window a CC sweep is mapped onto. More...
#include <midi_parameter_map.hpp>
Public Member Functions | |
| float | apply (uint8_t value) const |
| Map a raw 7-bit CC value onto this window. | |
Public Attributes | |
| float | min = 0.0f |
| float | max = 1.0f |
Normalized [0, 1] output window a CC sweep is mapped onto.
min > max inverts. Defaults to the full range, i.e. an identity CC → normalized map.
|
inline |
Map a raw 7-bit CC value onto this window.
The result is always within [0, 1] because both endpoints are clamped there on insertion.
| float pulp::state::MidiMapScale::max = 1.0f |
| float pulp::state::MidiMapScale::min = 0.0f |