pub enum SmoothingStyle {
None,
Linear(f64),
Exponential(f64),
Logarithmic(f64),
}Expand description
Smoothing style for a parameter.
Variants§
None
Linear(f64)
Exponential(f64)
Logarithmic(f64)
Multiplicative (log-domain) exponential smoothing over the given
milliseconds. Ramps geometrically rather than additively, so the
perceived rate of change is constant - the right choice for
frequency and linear-gain params where a fixed ratio, not a fixed
delta, reads as “smooth”. Requires strictly positive endpoints; a
non-positive current or target snaps (a log ramp can’t cross
or touch zero).
Trait Implementations§
Source§impl Clone for SmoothingStyle
impl Clone for SmoothingStyle
Source§fn clone(&self) -> SmoothingStyle
fn clone(&self) -> SmoothingStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SmoothingStyle
Auto Trait Implementations§
impl Freeze for SmoothingStyle
impl RefUnwindSafe for SmoothingStyle
impl Send for SmoothingStyle
impl Sync for SmoothingStyle
impl Unpin for SmoothingStyle
impl UnsafeUnpin for SmoothingStyle
impl UnwindSafe for SmoothingStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more