Library for reading and writing of MIDI messages and MIDI files (SMF) with Go
Library for reading and writing of MIDI messages and MIDI files (SMF) with Go
library for reading and writing of MIDI messages and SMF/MIDI files with Go.
Note: If you are reading this on Github, please note that the repo has moved to Gitlab (gitlab.com/gomidi/midi) and this is only a mirror.
go get gitlab.com/gomidi/midi/v2@latestThis package provides a unified way to read and write "over the wire" MIDI data and MIDI files (SMF).
For "cable" communication you need a Driver to connect with the MIDI system of your OS.
Currently the following drivers available in the drivers subdirectory (all multi-platform):
(there used to be a driver, based on portmidi, but this is not supported anymore)
……see https://pkg.go.dev/gitlab.com/gomidi/midi/v2
MIT (see LICENSE file)
Inspiration and low level code for MIDI reading (see internal midilib package) came from the http://github.com/afandian/go-midi package of Joe Wass which also helped as a starting point for the reading of SMF files.
Matt Aimonetti is also working on MIDI inside https://github.com/mattetti/audio but I didn't try it.
No open issues yet, or sync has not completed.