Struct sample::envelope::detect::Detector[][src]

pub struct Detector<F, D> where
    F: Frame,
    D: Detect<F>, 
{ /* fields omitted */ }

A type that can be used to detect the envelope of a signal.

Methods

impl<F, S> Detector<F, Rms<F, S>> where
    F: Frame,
    S: Slice<Element = F::Float> + SliceMut
[src]

Construct a new Rms Detector.

impl<F, R> Detector<F, Peak<R>> where
    F: Frame,
    R: Rectifier<F>, 
[src]

Construct a new Peak Detector that uses the given rectifier.

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

Construct a new full wave Peak Detector.

impl<F> Detector<F, Peak<PositiveHalfWave>> where
    F: Frame
[src]

Construct a new positive half wave Peak Detector.

impl<F> Detector<F, Peak<NegativeHalfWave>> where
    F: Frame
[src]

Construct a new positive half wave Peak Detector.

impl<F, D> Detector<F, D> where
    F: Frame,
    D: Detect<F>, 
[src]

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

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

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

Trait Implementations

impl<F: Clone, D: Clone> Clone for Detector<F, D> where
    F: Frame,
    D: Detect<F>,
    D::Output: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Debug, D: Debug> Debug for Detector<F, D> where
    F: Frame,
    D: Detect<F>,
    D::Output: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<F, D> Send for Detector<F, D> where
    D: Send,
    <D as Detect<F>>::Output: Send

impl<F, D> Sync for Detector<F, D> where
    D: Sync,
    <D as Detect<F>>::Output: Sync