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
fn amp_at_phase(&self, phase: f64) -> f32
Return the amplitude given some phase.
Provided Methods
fn process_hz(&self, hz: f64) -> f64
An optional method for processing the frequency.