WaveSynth: fix phase modulation - again
This commit is contained in:
parent
7750a9b9f3
commit
49a8f77cf1
|
@ -186,7 +186,7 @@ bool DivWaveSynth::tick(bool skipSubDiv) {
|
||||||
break;
|
break;
|
||||||
case DIV_WS_PHASE_MOD:
|
case DIV_WS_PHASE_MOD:
|
||||||
for (int i=0; i<=state.speed; i++) {
|
for (int i=0; i<=state.speed; i++) {
|
||||||
int mod=(wave2[pos]*(state.param2-stage))/((height+1)*2);
|
int mod=(wave2[pos]*(state.param2-stage)*width)/512;
|
||||||
output[pos]=wave1[(pos+mod)%width];
|
output[pos]=wave1[(pos+mod)%width];
|
||||||
if (++pos>=width) {
|
if (++pos>=width) {
|
||||||
pos=0;
|
pos=0;
|
||||||
|
|
Loading…
Reference in New Issue