pub struct PeakEnvelopeFollower { /* private fields */ }Expand description
Peak envelope follower with independent attack/release time constants, as used for audio dynamics processing (compressors, limiters, VU-style level meters).
Implementations§
Source§impl PeakEnvelopeFollower
impl PeakEnvelopeFollower
Sourcepub fn new(attack_samples: f32, release_samples: f32) -> Self
pub fn new(attack_samples: f32, release_samples: f32) -> Self
attack_samples / release_samples: the time constant, in samples, for the envelope
to rise / fall 1 - 1/e (~63%) of the way to a step change in input level.
Trait Implementations§
Source§impl Clone for PeakEnvelopeFollower
impl Clone for PeakEnvelopeFollower
Source§fn clone(&self) -> PeakEnvelopeFollower
fn clone(&self) -> PeakEnvelopeFollower
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeakEnvelopeFollower
Source§impl Debug for PeakEnvelopeFollower
impl Debug for PeakEnvelopeFollower
Source§impl Default for PeakEnvelopeFollower
impl Default for PeakEnvelopeFollower
Source§fn default() -> PeakEnvelopeFollower
fn default() -> PeakEnvelopeFollower
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeakEnvelopeFollower
impl RefUnwindSafe for PeakEnvelopeFollower
impl Send for PeakEnvelopeFollower
impl Sync for PeakEnvelopeFollower
impl Unpin for PeakEnvelopeFollower
impl UnsafeUnpin for PeakEnvelopeFollower
impl UnwindSafe for PeakEnvelopeFollower
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