Skip to main content

PluginContextReadF64

Trait PluginContextReadF64 

Source
pub trait PluginContextReadF64 {
    // Required methods
    fn get_param(&self, id: impl Into<u32>) -> f64;
    fn get_param_plain(&self, id: impl Into<u32>) -> f64;
}
Expand description

f64-precision parameter reads on PluginContext. Brought into scope by truce::prelude64. Same surface as PluginContextReadF32 but returns the bridge’s f64 value directly without narrowing.

Required Methods§

Source

fn get_param(&self, id: impl Into<u32>) -> f64

Normalized [0, 1] value of the parameter.

Source

fn get_param_plain(&self, id: impl Into<u32>) -> f64

Plain (denormalized) value of the parameter.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§