pub struct Phaser {
pub rate: ModulationRate,
pub centre_hz: f32,
pub depth_octaves: f32,
pub feedback: f32,
pub stereo_phase: f32,
pub mix: f32,
}Expand description
Four first-order allpass stages per channel. Full wet with zero feedback has unity magnitude at a fixed frequency; blending dry/wet creates two notches. The default 800 Hz centre needs at least 1778 Hz output; lower it at lower rates.
Fields§
§rate: ModulationRate§centre_hz: f32Centre of the logarithmic sweep, 1 Hz..=0.45 * sample rate.
depth_octaves: f32Sweep +/- this many octaves, 0..=4. Instantaneous frequency is clamped to 1 Hz..=0.45 * sample rate, including during ramps.
feedback: f32-0.95..=0.95, from the previous frame’s allpass output.
stereo_phase: f32Right-channel LFO offset in turns, 0..=1.
mix: f32Linear dry/wet blend, 0..=1.
Trait Implementations§
impl Copy for Phaser
impl StructuralPartialEq for Phaser
Auto Trait Implementations§
impl Freeze for Phaser
impl RefUnwindSafe for Phaser
impl Send for Phaser
impl Sync for Phaser
impl Unpin for Phaser
impl UnsafeUnpin for Phaser
impl UnwindSafe for Phaser
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