pub struct GateParams {
    pub input: Ch32,
    pub key: Ch32,
    pub range: Ch32,
    pub open_threshold: Ch32,
    pub close_threshold: Ch32,
    pub attack: f32,
    pub hold: f32,
    pub release: f32,
}
Expand description

Parameters of the Noise Gate.

Fields

input: Ch32

The signal the gate is being applied to.

key: Ch32

The signal that is triggering the gate (often same as input).

range: Ch32

How much the signal below the noise threshold is attenuated (reduced).

Set to 1 for silence below threshold, 0 makes the gate have no effect.

open_threshold: Ch32

The level at which the gate opens.

close_threshold: Ch32

The level at which the gate closes.

attack: f32

How long it takes for gate to fully open (seconds).

hold: f32

How long the signal is held before release once below threshold (seconds).

release: f32

How long it takes for gate to fully close (seconds).

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.