forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Milestone
Description
Thanks for this library which allowed me to prototype a MIDI controller rapidly.
Some MIDI controllers expose more than one MIDI interface, and I need to recreate that using Adafruit_CircuitPython_MIDI on a Raspberry Pi Pico.
However,
circuitpython/shared-bindings/usb_midi/PortOut.c
Lines 21 to 24 in 79fd8b7
//| """You cannot create an instance of `usb_midi.PortOut`. | |
//| | |
//| PortOut objects are constructed for every corresponding entry in the USB | |
//| descriptor and added to the ``usb_midi.ports`` tuple.""" |
The same goes for usb_midi.PortIn
.
It would be extremely useful if it was possible to create more than one MIDI interface per direction.
If that is not possible, then being able to choose the MIDI "cable number" would already be helpful.
References:
- My use case: Add DAW Controller support for various Arturia controllers probonopd/MiniDexed#743 (comment)
- Upstream issue: Multi MIDI Device with RP2040 hathach/tinyusb#1295
- Upstream solution in C: https://github.com/rppicomidi/midi-multistream2usbdev - maybe @jepler knows how to adopt this in CircuitPython?