pub struct ExpanderSettings {
pub threshold_db: f32,
pub ratio: f32,
pub range_db: f32,
pub attack_ms: f32,
pub hold_ms: f32,
pub release_ms: f32,
pub lookahead_ms: f32,
pub detector_filter: Option<DetectorFilter>,
}Expand description
What an Expander is built from. Invalid values are replaced by conservative defaults
and the rest clamped to what renders.
Fields§
§threshold_db: f32Level below which attenuation begins, in decibels from -96 to 0.
ratio: f32Downward ratio below the threshold, from 1 to crate::MAX_RATIO: the output falls
this many decibels for each decibel the level falls.
range_db: f32Most attenuation, in decibels up to MAX_EXPANDER_RANGE_DB.
attack_ms: f32Time the gain takes to open, in milliseconds.
hold_ms: f32How long the gain stays where it is after the level falls, in milliseconds up to
MAX_HOLD_MS.
release_ms: f32Time the gain takes to close, in milliseconds.
lookahead_ms: f32Lookahead in milliseconds, up to 100; the expander’s latency.
detector_filter: Option<DetectorFilter>A filter before the detector.
Implementations§
Trait Implementations§
Source§impl Clone for ExpanderSettings
impl Clone for ExpanderSettings
impl Copy for ExpanderSettings
Source§impl Debug for ExpanderSettings
impl Debug for ExpanderSettings
Source§impl PartialEq for ExpanderSettings
impl PartialEq for ExpanderSettings
impl StructuralPartialEq for ExpanderSettings
Auto Trait Implementations§
impl Forget for ExpanderSettings
impl Freeze for ExpanderSettings
impl Move for ExpanderSettings
impl RefUnwindSafe for ExpanderSettings
impl Send for ExpanderSettings
impl Sync for ExpanderSettings
impl Unpin for ExpanderSettings
impl UnsafeUnpin for ExpanderSettings
impl UnwindSafe for ExpanderSettings
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