fix(sointu): NumDelayLines did not take polyphony into account, resulting in panic

This commit is contained in:
vsariola 2021-03-04 11:16:05 +02:00
parent 6d2b63a5e9
commit 0f942f73d9

View File

@ -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
}
}
}