mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 04:54:27 -04:00
test(tracker): test loading presets in fuzz tests
This commit is contained in:
parent
59fb39d9b3
commit
61e7da5dab
@ -135,6 +135,12 @@ func (m *Model) IterateInstrumentPresets(yield InstrumentPresetYieldFunc) {
|
||||
}
|
||||
}
|
||||
|
||||
func NumPresets() int {
|
||||
return len(instrumentPresets)
|
||||
}
|
||||
|
||||
// LoadPreset loads a preset from the list of instrument presets. The index
|
||||
// should be within the range of 0 to NumPresets()-1.
|
||||
func (m *Model) LoadPreset(index int) Action {
|
||||
return Action{do: func() {
|
||||
defer m.change("LoadPreset", PatchChange, MajorChange)()
|
||||
|
Reference in New Issue
Block a user