mirror of
https://github.com/vsariola/sointu.git
synced 2026-08-16 22:56:58 -04:00
feat(tracker): add support for a MIDI controller to the standalone tracker
Closes #132.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user