Struct twang::ops::GateParams
source · [−]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
sourceimpl Clone for GateParams
impl Clone for GateParams
sourcefn clone(&self) -> GateParams
fn clone(&self) -> GateParams
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GateParams
impl Debug for GateParams
impl Copy for GateParams
Auto Trait Implementations
impl RefUnwindSafe for GateParams
impl Send for GateParams
impl Sync for GateParams
impl Unpin for GateParams
impl UnwindSafe for GateParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more