mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-24 16:04:51 -04:00
drafting
This commit is contained in:
parent
57926d4b0e
commit
5a11b290a2
@ -157,6 +157,7 @@ func (m LoadPreset) Do() {
|
||||
m.d.Song.Patch = append(m.d.Song.Patch, defaultInstrument.Copy())
|
||||
}
|
||||
newInstr := instrumentPresets[m.Index].Copy()
|
||||
newInstr.NumVoices = clamp(m.d.Song.Patch[m.d.InstrIndex].NumVoices, 1, vm.MAX_VOICES)
|
||||
m.Model.assignUnitIDs(newInstr.Units)
|
||||
m.d.Song.Patch[m.d.InstrIndex] = newInstr
|
||||
}
|
||||
|
Reference in New Issue
Block a user