mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-05 07:10:28 -05:00
fix(vm): nans in the Go VM trisaw oscillator when the color was 0
This commit is contained in:
parent
86ca3fb300
commit
ca4b87d43d
@ -500,7 +500,7 @@ func (s *GoSynth) Render(buffer sointu.AudioBuffer, maxtime int) (samples int, r
|
||||
*statevar -= float32(int(*statevar+1) - 1)
|
||||
phase := *statevar
|
||||
phase += params[2]
|
||||
phase -= float32(int(phase))
|
||||
phase -= float32(int(phase+1) - 1)
|
||||
color := params[3]
|
||||
switch {
|
||||
case flags&0x40 == 0x40: // Sine
|
||||
|
||||
Reference in New Issue
Block a user