-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to have 2 USB MIDI ports in different cables numbers? #3
Comments
I just found this one in the repo (i had an outdated version downloaded) but I don't see the USB ports when I load it to my board (Arduino M0 based) |
Hi @sanotronics Cable's are indeed the way to go. This lib using the underlying MIDIUSB lib for all USB heavylifting. Have you tried to get the M0 to work in that? |
Hi! I am using the code I paste below compiling for my board to try and make it work. It is derived from the example I linked before The MIDI instance on cable 0 works alright, I can see it and I can see the incoming MIDI messages. Maybe I am missing something of the theory but I'd expect the second port/cable to appear as a "KilomuxV2-2" or something similar to the original name of the USB-MIDI device. Thanks for the help!
|
I also tried to change the cable number to something different than 0 on the first port and then I still see the port on the midi monitor but not the Sysex messages. And if I set the second instance to cable 0 (MIDI2) I see the sysex15 message in the monitor, instead of the sysex11. If I set both instances to cable 0, both messages, sysex11 and sysex15 arrive. Could only cable 0 be working properly? |
It'd be really useful to get to the bottom of this, please @lathoub can you tell me if for you this just works and you see 2 USB-MIDI ports on your computer just by defining two instances of the MIDI objects? thanks |
I've been trying to do the same thing—OSX Catalina, Seeeduiono XIAO. But when I feel back again to a single cable, and tried a cable # of 7 to confirm the cable # doesn't matter for this report, the result was it killed my box (as in, now I have to perform surgery on a sealed box to get it back to the bootloader—yeah, I lost the bet that I'd not ever have to do that again!) This suggests to me an inconsistency in how it's registering and accessing by cable #. And possibly an easily-reproduced test case: Allocate a single cable with idx 7 (or perhaps other indexes depending on memory layout) but no cable 0. I hope that helps—and wish me luck on opening this sealed Altoid box, if you can stop laughing! LOL |
Alas, it appears to not be so easily reproduced. It only took me about 10 minutes to get into my Altoid box; the debonder solution was impressive! But a bare cable 7 seems to work, so I may not have added much information here. I do know the Mac supports multiple virtual cables via USB, as my Prosonus ATOM SQ manages the feat. |
One more bit of info: the cable # does matter for receive. |
Hi!
I am trying to make my device show 2 different USB-MIDI ports to the computer.
Is this possible?
I am trying like this:
and then
But I only see the first MIDI port.
In the examples I see that there is one for a Hardware MIDI and USB midi ports, but I don't see an example with 2 USB ports.
Thanks!
The text was updated successfully, but these errors were encountered: