mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(sointu): fix StackUse calculation for empty unit (unit.Type == "")
This commit is contained in:
parent
2f0c9a9f04
commit
18d466803f
@ -532,7 +532,7 @@ func (u *Unit) StackChange() int {
|
||||
|
||||
func (u *Unit) StackNeed() int {
|
||||
switch u.Type {
|
||||
case "envelope", "oscillator", "noise", "receive", "loadnote", "loadval", "in":
|
||||
case "", "envelope", "oscillator", "noise", "receive", "loadnote", "loadval", "in":
|
||||
return 0
|
||||
case "mulp", "mul", "add", "addp", "xch":
|
||||
return 2 * (1 + u.Parameters["stereo"])
|
||||
|
Loading…
Reference in New Issue
Block a user