Skip to main content

fit_stored

Function fit_stored 

Source
pub fn fit_stored(
    registry: &dyn ParamRegistry,
    field: &str,
    key: &str,
    wanted: f64,
    reason: &str,
    confidence: Level,
) -> Mapped
Expand description

The nearest edit of a control without a unit to a wanted stored value, such as a voice count or a level the adapter’s own law computed.

Outside the range the value lands on the nearest bound, and a Count takes the nearest whole number; either way the miss is listed with the residual. A key outside the registry, a legacy key, a key with a unit or a switch or menu gives no edit and a not_in_synth entry.