Trait synth::oscillator::freq_warp::FreqWarp [] [src]

pub trait FreqWarp {
    fn warp_hz(&self, hz: f64, freq_warp_phase: f64) -> f64;

    fn step_phase(&self, _sample_hz: f64, _freq_warp_phase: &mut f64) { ... }
}

Types that produce a warped frequency in hz for some given frequency in hz.

Required Methods

fn warp_hz(&self, hz: f64, freq_warp_phase: f64) -> f64

Return a warped hz given some hz, sample rate and phase.

Provided Methods

fn step_phase(&self, _sample_hz: f64, _freq_warp_phase: &mut f64)

Step the phase of the frequency warp if necessary.

Implementors