pub struct NoiseGate { /* private fields */ }Expand description
Noise Gate for ambient noise and low-level hum suppression.
Implementations§
Source§impl NoiseGate
impl NoiseGate
Sourcepub fn new(
threshold_db: f32,
reduction_db: f32,
attack_s: f32,
release_s: f32,
sample_rate_hz: f32,
) -> Self
pub fn new( threshold_db: f32, reduction_db: f32, attack_s: f32, release_s: f32, sample_rate_hz: f32, ) -> Self
Create a new noise gate.
threshold_db: Gate open threshold (e.g.-45.0dBFS).reduction_db: Maximum attenuation when closed (e.g.-40.0dB).attack_s: Opening time (e.g.0.002s).release_s: Closing time (e.g.0.05s).
Trait Implementations§
impl Copy for NoiseGate
Source§impl DspNode<f32> for NoiseGate
impl DspNode<f32> for NoiseGate
Source§fn process_sample(&mut self, input: f32) -> f32
fn process_sample(&mut self, input: f32) -> f32
Process a single input sample and produce one output sample.
Source§fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
Process a block of samples from
in_buf into out_buf.Source§fn process_in_place(&mut self, buf: &mut [T])
fn process_in_place(&mut self, buf: &mut [T])
Process a block of samples in place.
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§
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