pub fn generate_waveform_sample(waveform: Waveform, phase: f32) -> f32
Generate a single sample for the given waveform at the given phase (0.0–1.0).