AUDIO
Source snapshot · 11 November 2026

API reference / ravet_plugin::text::write_value

Function write_value 

pub fn write_value(
    parameter: &Parameter<'_>,
    value: f64,
    output: &mut impl Write,
) -> Result
Expand description

Write a physical value as text: clamped and snapped first, then On/Off for switches (the bypass parameter and unitless 0/1 toggles). Otherwise a number: whole for integral stepped values and logarithmic values of 1,000 or more, one decimal (dropped when it is zero) from 100, and two decimals below 100, so a value that is not whole never reads as one. The unit follows after a space when the parameter has one. Nonfinite values fail.