mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-22 15:04:36 -04:00
Change unison to be in the range of 0 - 3.
With this change, forgetting to initialize unison results in the default behaviour: 0 means one oscillator, 3 means four oscillators in unison.
This commit is contained in:
@ -184,13 +184,13 @@ func ParseAsm(reader io.Reader) (*Song, error) {
|
||||
return nil, errors.New("Invalid oscillator type")
|
||||
}
|
||||
if flags["UNISON4"] {
|
||||
parameters["unison"] = 4
|
||||
} else if flags["UNISON3"] {
|
||||
parameters["unison"] = 3
|
||||
} else if flags["UNISON2"] {
|
||||
} else if flags["UNISON3"] {
|
||||
parameters["unison"] = 2
|
||||
} else {
|
||||
} else if flags["UNISON2"] {
|
||||
parameters["unison"] = 1
|
||||
} else {
|
||||
parameters["unison"] = 0
|
||||
}
|
||||
if flags["LFO"] {
|
||||
parameters["lfo"] = 1
|
||||
|
Reference in New Issue
Block a user