Struct Noise Gate
pub struct NoiseGate { /* private fields */ }Expand description
One-channel finite-floor noise gate using an explicit rectified sidechain. Attack/release smooth the detector, rather than a separate gain envelope. No lookahead, hold, hysteresis, channel linking or hard mute. Processing/reset allocate nothing; per-sample log/pow and nonfinite audio are not sanitized.
Implementations§
§impl NoiseGate
impl NoiseGate
pub fn new(config: NoiseGateConfig) -> Self
pub fn reset(&mut self)
pub fn reset(&mut self)
Clear detector history; configuration remains unchanged.
pub fn detector_level(&self) -> f64
pub fn process_sample(&mut self, input: f64, sidechain: f64) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoiseGate
impl RefUnwindSafe for NoiseGate
impl Send for NoiseGate
impl Sync for NoiseGate
impl Unpin for NoiseGate
impl UnsafeUnpin for NoiseGate
impl UnwindSafe for NoiseGate
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more