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

The incoming value range an OSC surface sends, and the normalized [0, 1] window it drives. More...

#include <osc_parameter_map.hpp>

Public Member Functions

float apply (float value) const
 Map a raw OSC argument onto this window.

Public Attributes

float in_min = 0.0f
float in_max = 1.0f
float out_min = 0.0f
float out_max = 1.0f

Detailed Description

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.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ 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: