用 Go 读取和写入 MIDI 消息和 MIDI 文件 (SMF) 的库
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.
暂无开放 Issues,或尚未同步最近议题。