pub struct AllPass<F: Flt> { /* private fields */ }
Expand description
An all-pass filter based on a delay line.
Implementations
sourceimpl<F: Flt> AllPass<F>
impl<F: Flt> AllPass<F>
sourcepub fn set_sample_rate(&mut self, srate: F)
pub fn set_sample_rate(&mut self, srate: F)
Set the sample rate for millisecond based access.
sourcepub fn delay_tap_n(&self, time_ms: F) -> F
pub fn delay_tap_n(&self, time_ms: F) -> F
Access the internal delay at the given amount of milliseconds in the past.
sourcepub fn next(&mut self, time_ms: F, g: F, v: F) -> F
pub fn next(&mut self, time_ms: F, g: F, v: F) -> F
Retrieve the next (cubic interpolated) sample from the all-pass filter while feeding in the next.
time_ms
- Delay time in milliseconds.g
- Feedback factor (usually something around 0.7 is common)v
- The new input sample to feed the filter.
sourcepub fn next_linear(&mut self, time_ms: F, g: F, v: F) -> F
pub fn next_linear(&mut self, time_ms: F, g: F, v: F) -> F
Retrieve the next (linear interpolated) sample from the all-pass filter while feeding in the next.
time_ms
- Delay time in milliseconds.g
- Feedback factor (usually something around 0.7 is common)v
- The new input sample to feed the filter.
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for AllPass<F>where
F: RefUnwindSafe,
impl<F> Send for AllPass<F>where
F: Send,
impl<F> Sync for AllPass<F>where
F: Sync,
impl<F> Unpin for AllPass<F>where
F: Unpin,
impl<F> UnwindSafe for AllPass<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more