feat(tracker): add support for a MIDI controller to the standalone tracker

Closes #132.
This commit is contained in:
Alexander Kraus
2024-10-14 13:08:20 +02:00
committed by 5684185+vsariola@users.noreply.github.com
parent 9779beee99
commit 577265b250
7 changed files with 165 additions and 15 deletions

View File

@ -75,6 +75,8 @@ type (
PlayerMessages chan PlayerMsg
modelMessages chan<- interface{}
MIDI MIDIContexter
}
// Cursor identifies a row and a track in a song score.
@ -120,6 +122,18 @@ type (
ChangeType int
Dialog int
MIDIContexter interface {
ListInputDevices() <-chan MIDIDevicer
OpenInputDevice(item MIDIDevicer) bool
DestroyContext()
BPM() (bpm float64, ok bool)
NextEvent() (event MIDINoteEvent, ok bool)
}
MIDIDevicer interface {
String() string
}
)
const (