mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
parent
42a082b2a7
commit
93a4e3d688
1 changed files with 1 additions and 1 deletions
|
@ -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))>>8;
|
int mod=(wave2[pos]*(state.param2-stage))/((height+1)*2);
|
||||||
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 a new issue