Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::state::MidiMapScale Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ apply()

float pulp::state::MidiMapScale::apply ( uint8_t value) const
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.

Member Data Documentation

◆ max

float pulp::state::MidiMapScale::max = 1.0f

◆ min

float pulp::state::MidiMapScale::min = 0.0f

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