increment sample rate

This commit is contained in:
Dimas Leenman 2022-07-20 13:57:40 +02:00
parent ddf42fefd5
commit acc933add3

View file

@ -104,6 +104,9 @@ impl DspNode for Formant {
// entire wave
let wave = carrier * modulator;
// increment phase (very imporant)
self.phase += self.inv_sample_rate;
out.write(frame, wave);
}
}