From 0f942f73d9254ce160b7b676f1313d3d2f54648e Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Thu, 4 Mar 2021 11:16:05 +0200 Subject: [PATCH] fix(sointu): NumDelayLines did not take polyphony into account, resulting in panic --- patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.go b/patch.go index 6718d0b..5bb901d 100644 --- a/patch.go +++ b/patch.go @@ -30,7 +30,7 @@ func (p Patch) NumDelayLines() int { for _, instr := range p { for _, unit := range instr.Units { if unit.Type == "delay" { - total += len(unit.VarArgs) + total += len(unit.VarArgs) * instr.NumVoices } } }