Struct envelope_detector::Mono
[−]
[src]
pub struct Mono<D> { // some fields omitted }
A channel mode used by the EnvelopeDetector when envelope detection is only needed on a single channel.
Methods
impl<D> Mono<D>
[src]
fn next(&mut self, sample: f32, attack_gain: f32, release_gain: f32) -> f32 where D: Mode
Given the next input signal sample, detect and return the next envelope sample.
impl Mono<Rms>
[src]
fn rms(rms_window_frames: usize) -> Mono<Rms>
Construct a new Rms Mono.
fn set_window_frames(&mut self, n_window_frames: usize)
Set the duration of the Rms window in frames.
impl Mono<Peak>
[src]
Trait Implementations
impl<D: Debug> Debug for Mono<D>
[src]
impl<D: Clone> Clone for Mono<D>
[src]
fn clone(&self) -> Mono<D>
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