AUDIO
Source snapshot · 11 November 2026

API reference / ravet_plugin::text

Module text 

Expand description

Parameter value text shared by every export format.

CLAP and the native table (VST3, AUv2, AAX, LV2) format and parse values with these functions, so hosts show the same text everywhere.

Functions§

format_value
write_value into a new string.
parse_value
Parse text written by write_value or typed by a user: a number with an optional unit suffix, or On/Off for switches. The result is clamped and snapped to the parameter’s range.
write_value
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.