pub struct Second<M, C> {
pub module: M,
pub _phantom: PhantomData<C>,
}Expand description
Pass through first element, process second
Fields§
§module: M§_phantom: PhantomData<C>Trait Implementations§
Source§impl<M, C> Module for Second<M, C>
impl<M, C> Module for Second<M, C>
Source§type In = (C, <M as Module>::In)
type In = (C, <M as Module>::In)
Input signal type (e.g.,
f64 for mono, (f64, f64) for stereo)Source§fn tick(&mut self, (c, a): Self::In) -> Self::Out
fn tick(&mut self, (c, a): Self::In) -> Self::Out
Process a single sample, advancing internal state by one time step. Read more
Source§fn set_sample_rate(&mut self, sample_rate: f64)
fn set_sample_rate(&mut self, sample_rate: f64)
Notify module of sample rate changes. Read more
Auto Trait Implementations§
impl<M, C> Freeze for Second<M, C>where
M: Freeze,
impl<M, C> RefUnwindSafe for Second<M, C>where
M: RefUnwindSafe,
C: RefUnwindSafe,
impl<M, C> Send for Second<M, C>
impl<M, C> Sync for Second<M, C>
impl<M, C> Unpin for Second<M, C>
impl<M, C> UnsafeUnpin for Second<M, C>where
M: UnsafeUnpin,
impl<M, C> UnwindSafe for Second<M, C>where
M: UnwindSafe,
C: 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
Source§impl<M> ModuleExt for Mwhere
M: Module,
impl<M> ModuleExt for Mwhere
M: Module,
Source§fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
fn then<M: Module<In = Self::Out>>(self, next: M) -> Chain<Self, M>
Chain this module with another (sequential composition:
>>>)Source§fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
fn fanout<M: Module<In = Self::In>>(self, other: M) -> Fanout<Self, M>
Split input to two parallel processors (
&&&)