feat(sointu): update synth instead of recompiling if no commands (units) change

this avoids the nasty clicking resulting from complete reset / recompilation of the synth, which was the previous case
This commit is contained in:
vsariola
2021-01-28 22:35:27 +02:00
parent 61437db0d6
commit 6c97b5e736
4 changed files with 52 additions and 17 deletions

View File

@ -104,6 +104,7 @@ func (t *Track) Copy() Track {
type Synth interface {
Render(buffer []float32, maxtime int) (int, int, error)
Update(patch Patch) error
Trigger(voice int, note byte)
Release(voice int)
}