Struct envelope_detector::EnvelopeDetector [] [src]

pub struct EnvelopeDetector<F, M> where
    F: Frame,
    M: Mode<F>, 
{ /* 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).

Supports processing any sample::Frame

Methods

impl<F> EnvelopeDetector<F, Rms<F>> where
    F: Frame
[src]

Construct a new Rms EnvelopeDetector.

Set the duration of the Rms window in frames.

impl<F> EnvelopeDetector<F, Peak<FullWave>> where
    F: Frame
[src]

Construct a new Mono Peak EnvelopeDetector.

impl<F, M> EnvelopeDetector<F, M> where
    F: Frame,
    M: Mode<F>, 
[src]

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

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

Given the next input signal frame, detect and return the next envelope frame.

Given the next input signal frame, detect and return the next envelope average across each channel for the frame.

The returned value will take the form of the signal's equivalent floating point sample format.

Trait Implementations

impl<F: Copy, M: Copy> Copy for EnvelopeDetector<F, M> where
    F: Frame,
    M: Mode<F>, 
[src]

impl<F: Clone, M: Clone> Clone for EnvelopeDetector<F, M> where
    F: Frame,
    M: Mode<F>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Debug, M: Debug> Debug for EnvelopeDetector<F, M> where
    F: Frame,
    M: Mode<F>, 
[src]

Formats the value using the given formatter.