Replies: 2 comments 2 replies
|
@GModal As it is currently implemented, this library does not support what you want to do. I do not do a lot of Arduino development, but I took a quick look at the Arduino MIDI Library source and I think that the Adafruit TinyUSB Arduino does not quite implement support for multiple virtual USB MIDI cables properly. If I understand the Arduino MIDI Library correctly, each virtual cable needs to have its own interface. The code creates a single MIDI Interface object. Since a USB MIDI device can support up to 16 virtual cables, you need code that sits above the interface level to manage an interface object for each of the up to 16 virtual cables. What I did on the host side in my EZ_USB_MIDI_HOST project is create a The library contains code that will create the correct USB descriptor, but it needs to be refactored to allocate a new transport for each virtual cable on creation. This post is over a year old, but I will have a go at implementing something. Would that be of interest to you? |
Uh oh!
There was an error while loading. Please reload this page.
I'm working with an ESP32-S3 board, and my project successfully connects to a BLE MIDI peripheral, and sends MIDI data to a USB-OTG MIDI port, plugged into my PC (Ubuntu / Pipewire & JACK). It works very well, currently (thanks everyone!).
And Creating multiple USB MIDI ports in the sketch seems straight-forward:
The two USB MIDI ports appear on my PC, but I'm having difficulty sending MIDI data to the second port. I'm clearly misunderstanding how to access the second stream defined in
usb_midi.All reactions