pub struct Chorus {
pub rate: ModulationRate,
pub delay_ms: f32,
pub depth_ms: f32,
pub feedback: f32,
pub stereo_phase: f32,
pub mix: f32,
}Expand description
Two sinusoidally modulated delay taps per channel, with a quarter-cycle offset between taps. The wet signal is their average. Linear interpolation; no added dry-path latency. Delay +/- depth must fit 1 sample..=80 ms at preparation.
Fields§
§rate: ModulationRate§delay_ms: f32§depth_ms: f32§feedback: f32-0.95..=0.95, fed back from the averaged wet signal.
stereo_phase: f32Right-channel LFO offset in turns, 0..=1; mono uses zero offset.
mix: f32Linear dry/wet blend, 0..=1.
Trait Implementations§
impl Copy for Chorus
impl StructuralPartialEq for Chorus
Auto Trait Implementations§
impl Freeze for Chorus
impl RefUnwindSafe for Chorus
impl Send for Chorus
impl Sync for Chorus
impl Unpin for Chorus
impl UnsafeUnpin for Chorus
impl UnwindSafe for Chorus
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