generated from thinkode/modelRepository
MIDI device start of implementation
This commit is contained in:
@@ -10,15 +10,24 @@ import (
|
||||
"gitlab.com/gomidi/midi"
|
||||
)
|
||||
|
||||
// MIDIDevice represents the device to control
|
||||
type MIDIDevice struct {
|
||||
ID string // Device ID
|
||||
Mapping MappingInfo // Device mapping configuration
|
||||
}
|
||||
|
||||
// ------------------- //
|
||||
|
||||
// MIDIPeripheral contains the data of a MIDI peripheral
|
||||
type MIDIPeripheral struct {
|
||||
wg sync.WaitGroup
|
||||
|
||||
inputPorts []midi.In
|
||||
outputsPorts []midi.Out
|
||||
info PeripheralInfo // The peripheral info
|
||||
settings map[string]interface{} // The settings of the peripheral
|
||||
|
||||
info PeripheralInfo // The peripheral info
|
||||
settings map[string]interface{} // The settings of the peripheral
|
||||
devices []MIDIDevice // All the MIDI devices that the peripheral can handle
|
||||
}
|
||||
|
||||
// NewMIDIPeripheral creates a new MIDI peripheral
|
||||
|
||||
Reference in New Issue
Block a user