Struct oxcable_basic_devices::dynamics::noise_gate::NoiseGate [] [src]

pub struct NoiseGate {
    // some fields omitted
}

A noise gate.

Noise gates provide a floor the signal must exceed; anything below the floor is muted instead.

The noise gate provides two different thresholds. The gate will open once the signal exceeds the on threshold, and close when the signal level drops below the off threshold.

Methods

impl NoiseGate

fn new(on_threshold: f32, off_threshold: f32, gain: f32, num_channels: usize) -> Self

Creates a new compressor.

  • The on_threshold and off_threshold specify the signal floors in decibels.
  • The specified gain (in decibels) will be applied to the signal after compression.

Trait Implementations

impl MessageReceiver for NoiseGate

type Msg = Message

fn handle_message(&mut self, msg: Message)

impl AudioDevice for NoiseGate

fn num_inputs(&self) -> usize

fn num_outputs(&self) -> usize

fn tick(&mut self, _: Time, inputs: &[Sample], outputs: &mut [Sample])