USBHost and multi-channel midi devices.

AllegroAgitato

New member
Hi All,

Does the USBHost_t36 library support multi-channel midi devices? I have a akai ableton push midi controller hooked up to a teensy 4.1's usb-host port. The Push controller has 2 seperate virtual usb-midi ports, but when i send midi over either, midi is always received via the first usb-host port (i have 4 usb-host mididevices setup). This would make sense if the USBHost_t36 library treats both virtual ports as the same device and it doesn't support multiple virtual ports like you can with USBMidi. But i can't find any documentation on this. If i turn on the serial debugging in the USBHost_t36 library it does indeed tell me the device has 2 interfaces

Code that i'm using is essentially the interface 16x16 example, but without the "serial" midi ports.

Any help would be greatly appreciated!

kind regard,

Thomas
 
Did you find any info concerning this?

…having what I belevi the same problem with a Novation LaunchKey 25 that has two ”ports”, but I can only reach the first?
 
Did you find any info concerning this?

…having what I belevi the same problem with a Novation LaunchKey 25 that has two ”ports”, but I can only reach the first?

You can add a parameter to designate the port at the end of the midi message
Code:
USBHost myusb;
USBHost hub1(myusb);
MIDIDevice MIDI1(myusb);
const byte port1 = 0;
const byte port2 = 1;
const byte myChannel = 0;
const byte myProgram = 0;


// after setup
// send program change to first port
MIDI1.sendProgramChange(myChannel, myProgram, port1);
// send program change to second port
MIDI.sendProgramChange(myChannel, myProgram, port2);
 
Back
Top