pub fn oscillator_sample(waveform: &str, frequency: f32, time: f32) -> f32
Generate a single sample from an oscillator