Skip to main content

assert_param_normalized_clamped

Function assert_param_normalized_clamped 

Source
pub fn assert_param_normalized_clamped<P: PluginExport>()
Expand description

Assert normalized param values are clamped to [0, 1].

set_plain stores raw atomics (no clamping) but normalized values should always round-trip within [0, 1].

ยงPanics

Panics if get_normalized returns None for an id that has a ParamInfo entry, or if the read-back value escapes [-1e-4, 1+1e-4] after writing 2.0 / -1.0.