mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 05:24:48 -04:00
refactor(tracker): harmonize naming and use iterators in MIDI
using iterators requires go 1.23
This commit is contained in:
parent
577265b250
commit
c07d8000c6
@ -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 {
|
||||
|
Reference in New Issue
Block a user