adafruit / Adafruit_CircuitPython_USB_Host_MIDI

CircuitPython USB host driver for MIDI devices
MIT License
3 stars 1 forks source link

MIDI.write implementation #1

Open giorrrgio opened 6 months ago

giorrrgio commented 6 months ago

Hi, thank you for the library! I was wondering why there's no write implementation inside the midi class. It's not as simple as the following, is it? 🤔

def write(self, packet, num):
    self.device.write(self.out_ep, packet)
tannewt commented 5 months ago

I don't think so. There is some conversion between MIDI packets and USB MIDI container packet.

What device do you want to use it with? I don't have one for testing now.