MIDI device start of implementation

This commit is contained in:
2025-11-16 21:44:48 +01:00
parent 19ec0bec74
commit 76b705012c
4 changed files with 43 additions and 12 deletions

View File

@@ -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