Has anyone ever gotten USB MIDI working with Android?

Status
Not open for further replies.
The Teensy supposedly emulates a Midi USB device, but I have not been able to get it to play any notes on an Android keyboard app.

The Android keyboard app supports Midi USB, and it play notes when connected to other USB Midi controllers. My Android device will recognize a Midi USB device, but nothing will actually be played. Has anyone EVER gotten USB Midi to work on Android?

My code is as bare as it could be at this point:

Code:
void setup()
{

}

void loop()
{
    usbMIDI.sendNoteOn(60, 99, 2);  // 60 = C4
}
 
You already started this other thread.

First, this is a poor test. You really must have at least delay and a note off.

You really should test with a PC first, to make sure it's really working.

Are you sure the program on Android is listening for MIDI channel 2?

I just noticed now, on the other thread, you had 0x45 for the channel number, which is an illegal value. MIDI channels are 1 to 16.
 
I apologize for the repetition. I was trying to generalize the question more.

I will try Midi-Ox later in the day. I tried setting up Midi-Ox on a different PC before with limited success, but at the time I was having problems with Arduino (hence trying Teensy now).
 
The Teensy supposedly emulates a Midi USB device, but I have not been able to get it to play any notes on an Android keyboard app.

No, it doesn't "emulate" a USB MIDI device.

However, all Teensies (2.0, ++2.0, 3.0) are fully class-compliant USB MIDI devices, if MIDI was selected from the menu option when compiling the sketch. It just works out of the box, and many people have reported success with assorted host platforms.

Yes, this may come as a surprise for someone used to regular Arduinos (where people typically use DIN MIDI, or even just serial output with a host based serial-to-MIDI converter) or people who have tried to reprogram the USB controller on other Arduinos, or who bought a Leonardo expecting it to support USB MIDI (it doesn't, just keyboard and mouse).

My Android device will recognize a Midi USB device, but nothing will actually be played. Has anyone EVER gotten USB Midi to work on Android?
On a Teensy, or with any USB MIDI device?
It's not clear whether you have a general MIDI on Android problem, or a specific problem with your Teensy code.
 
Status
Not open for further replies.
Back
Top