USB Host Midi Plus USB Midi?

blakeAlbion

Well-known member
Hi, I have used the USB Host library with the Teensy 4 and the Teensy 4.1. I have also used USB Midi so my Teensy projects can show up in a DAW.
Can I use them together, and like an MPC, have both kinds of USB ports on my device? I want to be able to plug in a cheap USB midi keyboard and then also plug the teensy device into my computer.
It's looking like the serial configuration is conflicting here.

Thanks,
Benjamin
 
Okay, the answer is "yes you can have it all", but I see there are issues with Teensy 4 audio rate in terms of compatibility.

It's all working.

void loop() {
MIDI.read();
usbMIDI.read();
checkUSBHostStatus();
// USB Host MIDI Class Compliant
if (usbHostPluggedIn) {
myusb.Task();
if (usbHostMIDI && usbHostPluggedIn) {
usbHostMIDI.read(0);
}
}
 
Back
Top