pub struct Smoother<T: Transcendental> { /* private fields */ }Expand description
Exponential smoothing (one-pole filter)
Implementations§
Source§impl<T: Transcendental> Smoother<T>
impl<T: Transcendental> Smoother<T>
Sourcepub fn set_target(&mut self, target: T)
pub fn set_target(&mut self, target: T)
Set target value
Sourcepub fn process_sample(&mut self, input: T) -> T
pub fn process_sample(&mut self, input: T) -> T
Process one sample (one-pole low-pass filter)
Sourcepub fn set_current(&mut self, value: T)
pub fn set_current(&mut self, value: T)
Set value instantly (no smoothing)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Smoother<T>where
T: Freeze,
impl<T> RefUnwindSafe for Smoother<T>where
T: RefUnwindSafe,
impl<T> Send for Smoother<T>
impl<T> Sync for Smoother<T>
impl<T> Unpin for Smoother<T>where
T: Unpin,
impl<T> UnsafeUnpin for Smoother<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Smoother<T>where
T: UnwindSafe,
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