Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: problem with USBhost with more than 1 MIDI port

  1. #1
    Member
    Join Date
    Sep 2019
    Location
    Sevilla, Spain
    Posts
    55

    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 by M4ngu; 01-06-2021 at 09:04 PM.

  2. #2
    Member
    Join Date
    Sep 2019
    Location
    Sevilla, Spain
    Posts
    55
    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 ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •