pub fn oscillator(waveform: Waveform, phase: f32) -> f32
Generate one sample from a waveform at a given phase [0, 1).