mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(tracker): voices are now released when the synth is recompiled
fixes nasty noises from all voices being triggered with note 0
This commit is contained in:
parent
d01657ab83
commit
4ed259ff17
@ -86,6 +86,10 @@ func (s *Sequencer) loop(bufferSize int, service sointu.SynthService, context so
|
||||
s.synth, err = service.Compile(patch)
|
||||
if err == nil {
|
||||
s.enable()
|
||||
for i := range s.voiceReleased {
|
||||
s.voiceReleased[i] = true
|
||||
s.synth.Release(i)
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user