refactor(tracker): harmonize naming and use iterators in MIDI

using iterators requires go 1.23
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-10-14 15:00:55 +03:00
parent 577265b250
commit c07d8000c6
5 changed files with 95 additions and 87 deletions

View File

@ -54,8 +54,8 @@ func main() {
recoveryFile = filepath.Join(configDir, "Sointu", "sointu-track-recovery")
}
model, player := tracker.NewModelPlayer(cmd.MainSynther, recoveryFile)
model.MIDI = gomidi.CreateContext()
defer model.MIDI.DestroyContext()
model.MIDI = gomidi.NewContext()
defer model.MIDI.Close()
if a := flag.Args(); len(a) > 0 {
f, err := os.Open(a[0])
if err == nil {