[][src]Trait dasp::envelope::Detect

pub trait Detect<F> where
    F: Frame,
    <Self::Output as Frame>::NumChannels == <F as Frame>::NumChannels
{ type Output: Frame; fn detect(&mut self, frame: F) -> Self::Output; }

Types that may be used to detect an envelope over a signal.

Associated Types

type Output: Frame

The result of detection.

Loading content...

Required methods

fn detect(&mut self, frame: F) -> Self::Output

Given some frame, return the detected envelope over each channel.

Loading content...

Implementors

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

type Output = <R as Rectifier<F>>::Output

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

type Output = <F as Frame>::Float

Loading content...