mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-22 15:04:36 -04:00
refactor(asm&go4k): Remove FLAGS from all units; they were the source of difficulty in parsing and fragile.
All units now take parameters according to flags. Only non-numeric parameter anymore is oscillator type.
This commit is contained in:
@ -173,7 +173,7 @@ func Synth(patch go4k.Patch) (*C.Synth, error) {
|
||||
if unit.Parameters["voice"] != -1 {
|
||||
address += 0x4000 + 16 + unit.Parameters["voice"]*1024 // global send, address is computed relative to synthworkspace
|
||||
}
|
||||
if unit.Parameters["pop"] == 1 {
|
||||
if unit.Parameters["sendpop"] == 1 {
|
||||
address += 0x8000
|
||||
}
|
||||
values = append(values, byte(address&255), byte(address>>8))
|
||||
|
Reference in New Issue
Block a user