sample rate
This commit is contained in:
parent
acc933add3
commit
505662414a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue