Did someone try a Teensy 4.1 MIDI with iOS?

lorenzofattori

Well-known member
so I am in need to convert some midi notes from a USB MIDI device that is sending wrong notes, the end device is an iPad with midi software on it
I was thinking to use a teensy 4.1 that I have around, with my midi device connected to the USB Host and connect the Teensy USB to the IPAD.
It seems that iOS does not like the teensy 4.1

I wrote a stupid test:

C++:
void loop()
{
  usbMIDI.sendNoteOn(42, 127, 10);
  delay(1000);
}

this works perfectly on my PC, but when I plug the teensy to the ipad I can see the midi device but no notes are being sent.
I am using an USB C dongle with external power and I know the dongle works because if I connect my midi device it does properly show the midi notes.

Any idea why Teensy 4.1 does not send notes out to an ipad?

Thank you
 
Please show your entire sketch. It is almost impossible to help you without seeing exactly what all is included in your sketch (for example, in your setup() function.

Thanks,

Mark J Culross
KD5RXT
 
Please show your entire sketch. It is almost impossible to help you without seeing exactly what all is included in your sketch (for example, in your setup() function.

Thanks,

Mark J Culross
KD5RXT
Code:
// Simple test of USB Host
//
// This example is in the public domain

#include "USBHost_t36.h"

USBHost myusb;
USBHub hub1(myusb);
USBHub hub2(myusb);
USBHub hub3(myusb);
//KeyboardController keyboard1(myusb);
//KeyboardController keyboard2(myusb);
MIDIDevice midi1(myusb);

void setup()
{
    while (!Serial) ; // wait for Arduino Serial Monitor
    Serial.println("USB Host Testing");
    myusb.begin();
//    keyboard1.attachPress(OnPress);
//    keyboard1.attachRawPress(OnRawPress);
//    keyboard1.attachRawRelease(OnRawRelease);
//    keyboard2.attachPress(OnPress);
//    midi1.setHandleNoteOff(OnNoteOff);
    midi1.setHandleNoteOn(OnNoteOn);
    midi1.setHandleControlChange(OnControlChange);
}


void loop()
{
    myusb.Task();
    midi1.read();
  usbMIDI.sendNoteOn(42, 127, 10);
  delay(1000);

}


code taken from examples, nothing crazy
 
anyone who managed to get teensy USB running on iPad?
it would be very nice to have some guidance on how to troubleshoot this

Lorenzo
 
Back
Top