Struct envelope_detector::EnvelopeDetector [] [src]

pub struct EnvelopeDetector<C> {
    // some fields omitted
}

Iteratively extracts the amplitude envelope from an audio signal based on three parameters:

  • Attack time.
  • Release time.
  • Detection mode (Either Peak or RMS).

The EnvelopeDetector supports both Mono and MultiChannel modes.

Methods

impl<C> EnvelopeDetector<C>
[src]

fn set_attack_frames(&mut self, frames: f32)

Set the EnvelopeDetector's attack time as a number of frames.

fn set_release_frames(&mut self, frames: f32)

Set the EnvelopeDetector's release time as a number of frames.

Trait Implementations

impl<C: Debug> Debug for EnvelopeDetector<C>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<C: Clone> Clone for EnvelopeDetector<C>
[src]

fn clone(&self) -> EnvelopeDetector<C>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<C: Copy> Copy for EnvelopeDetector<C>
[src]