We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 720f41a commit 3c45289Copy full SHA for 3c45289
1 file changed
src/WCO_Osc.cpp
@@ -294,8 +294,8 @@ struct VoltageControlledOscillator {
294
}
295
//}
296
297
- sqrFilter.setCutoff(22050.0f * (deltaTime/OVERSAMPLE));
298
- mid_phase=phase; // +0.03f;
+ sqrFilter.setCutoff(44100.0f * (deltaTime/OVERSAMPLE));
+ mid_phase=phase +0.03f;
299
while (mid_phase > 1.0f) {
300
mid_phase -= 1.0f;
301
@@ -309,7 +309,7 @@ struct VoltageControlledOscillator {
309
phase = 0.0f;
310
311
// Advance phase
312
- sinBuffer[i]=1.66f * interpolateLinear(buf_final, phase*255.0f) ;
+ sinBuffer[i]=1.66f * interpolateLinear(buf_final, mid_phase*255.0f) ;
313
sqrFilter.process(sinBuffer[i]);
314
sinBuffer[i]=sqrFilter.lowpass();
315
phase += deltaPhaseOver;
0 commit comments