diff --git a/src/dsp/node_formant.rs b/src/dsp/node_formant.rs index dadf4e1..50d5086 100644 --- a/src/dsp/node_formant.rs +++ b/src/dsp/node_formant.rs @@ -105,7 +105,8 @@ impl DspNode for Formant { let wave = carrier * modulator; // increment phase (very imporant) - self.phase += self.inv_sample_rate; + self.phase += base_freq * self.inv_sample_rate; + self.phase = self.phase.fract(); out.write(frame, wave); }