Trait synth::oscillator::waveform::Waveform [] [src]

pub trait Waveform {
    fn amp_at_phase(&self, phase: f64) -> f32;

    fn process_hz(&self, hz: f64) -> f64 { ... }
}

Some type that can return an amplitude given some phase.

Required Methods

Return the amplitude given some phase.

Provided Methods

An optional method for processing the frequency.

Implementors