Trait synth::oscillator::frequency::Frequency [] [src]

pub trait Frequency {
    fn hz_at_playhead(&self, perc: f64) -> f64;

    fn freq_perc_at_playhead(&self, perc: f64) -> f64 { ... }
}

Types for generating the frequency given some playhead position.

Required Methods

fn hz_at_playhead(&self, perc: f64) -> f64

Return the frequency given some playhead percentage through the duration of the Synth. - 0.0 < perc < 1.0l

Provided Methods

fn freq_perc_at_playhead(&self, perc: f64) -> f64

Return the frequency as a percentage.

Implementors