Initial commit

This commit is contained in:
2025-08-03 16:21:33 +02:00
commit 0c0e1e985e
7 changed files with 163 additions and 0 deletions

25
main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"log"
"time"
"gitlab.com/gomidi/midi/v2"
)
func must[T any](obj T, err error) T {
if err != nil {
log.Fatal(err)
}
return obj
}
func main() {
defer midi.CloseDriver()
midiInput := must(NewMidiInput("DJControl Inpulse 500 MIDI 1"))
time.Sleep(time.Second * 20)
midiInput.Stop()
}