WaveSynth: fix it....... again.

This commit is contained in:
tildearrow 2022-05-27 00:35:35 -05:00
parent 3651027d99
commit 1540705b75
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ bool DivWaveSynth::tick(bool skipSubDiv) {
break;
case DIV_WS_PHASE_MOD:
for (int i=0; i<=state.speed; i++) {
int mod=(wave2[pos]*(state.param2-stage)*width)/512;
int mod=(wave2[pos]*(state.param2-stage)*width)/(64*(height+1));
output[pos]=wave1[(pos+mod)%width];
if (++pos>=width) {
pos=0;