increment sample rate
This commit is contained in:
parent
ddf42fefd5
commit
acc933add3
1 changed files with 3 additions and 0 deletions
|
@ -104,6 +104,9 @@ impl DspNode for Formant {
|
||||||
// entire wave
|
// entire wave
|
||||||
let wave = carrier * modulator;
|
let wave = carrier * modulator;
|
||||||
|
|
||||||
|
// increment phase (very imporant)
|
||||||
|
self.phase += self.inv_sample_rate;
|
||||||
|
|
||||||
out.write(frame, wave);
|
out.write(frame, wave);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue