problem with USBhost with more than 1 MIDI port

Status
Not open for further replies.

M4ngu

Well-known member
problem with USBhost with more than 1 MIDI port - SOLVED

Hi friends, I'm facing a problem with Teensy 4.1 communicating with a Novation Launchpad mk3, this device has 2 midi ports (through USB)
I get correctly the midi coming from the Launchpad, but to illuminate the pads the midi data has to be sent its second port, and I don't know how to accomplish that.
I have tried this (also without the 2 hub lines), this is how it's done in the example Interface_16x16:
Code:
#include <USBHost_t36.h>
USBHost myusb;

USBHub hub1(myusb);
USBHub hub2(myusb);

MIDIDevice midi1(myusb);
MIDIDevice midi2(myusb);
btw the midi messages to illuminate the pads are correct, I have tested plugging both my device and the Launchpad to the computer and using a DAW to connect them.
Thanks in advance.
 
Last edited:
ok, solved it looking at the sendMidiNote definition, with 'cable' set to 1 (default is 0)

Code:
midi1.sendNoteOn(note, velocity, channel, cable);

happy new year to all ;-)
 
Status
Not open for further replies.
Back
Top