LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 07-04-2011, 04:50 AM   #1
P5music
Member
 
Registered: Nov 2010
Posts: 59

Rep: Reputation: 0
question about android.hardware.usb and midi interfaces


Hello,
I would like to know if android.hardware.usb could be useful to make an android device communicate with a midi usb interface.
I ask also if every midi usb interface adopt the same protocol.
In linux systems when I plug my Edirol UA4fx interface, it is detected and recognized, and later alsa can exploit it. I wonder if a driver for every midi interface is inside the system or just there is a protocol.
If yes where could I find documentation about it so to implement it with
android.hardware.usb?
And moreover, can alsa be ported to android like a c++ legacy library?
Any further information is welcome.
Thank you very much
 
Old 08-11-2011, 08:06 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Over a month w/ no answers -- maybe any or all of the following would help:
  • Links to the things you're asking about.
  • Clearer questions.
  • More information.
Good luck.
 
Old 08-12-2011, 04:08 AM   #3
P5music
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
even better is addressing platforms where midi is supported (someone said iPad?)
 
Old 09-03-2011, 04:55 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Another month is over, & still no answers, have you given up on this question?
 
Old 11-07-2011, 06:41 PM   #5
WintonDiesel
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
MIDI testing on Acer A-500 works fine for me

Hello,

I have written a lot of MIDI apps, mostly using the MidiShare framework (midishare.sourceforge.net). But like you, I wanted to get something going on Android, and after a lot of digging found some ideas and wrote a simple test program.

Not wanting to modify my stock Acer A-500 tablet (Android 3.2, Kernel 2.6.36.3), I decided to access the Midi USB adapter using the Usb Host classes provided in the SDK.

I tried two different USB Midi adapters, an Edirol UM-1 and an old Turtle Beach one (no model number on it, I think it's the only one they made under that name). Both worked with the same protocol, I just had to change the resources to match the different Vendor and Product ID's. All Midi data is transported in four-byte packets and no setup commands are required; just get USB permission, find the in and out block transfer endpoints, and use multiple threads to prevent stalling.

My test program so far just generates a few fixed NoteOn and NoteOff messages to test the output (played just fine on my Casio synthesizer) and printed the incoming MIDI messages in a TextView to check the input (received the Casio's keyboard messages fine).

The next step will be to implement code to send/receive MIDI to/from a standard midi file, and then to write a full application for a sequencer. But the important thing is proof of concept -- with the latest Android you CAN use a USB Midi interface (at least these two) without rooting the tablet and adding additional drivers.

Brian
 
Old 12-19-2011, 03:50 PM   #6
DrMidi
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
To Brian WintonDiesel

Hi, can I get more info on how you got MIDI working via USB on Android? If possible, please respond to paul@broadway-performance-systems.com.

Thanks!

Paul
 
Old 01-03-2012, 07:26 AM   #7
pac2001man
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Hi, I'm also looking to achieve this. At present, my USB-MIDI controller (non-branded) is unrecognised when plugged into an Android 3.1 Samsung Galaxy 10.1". I think the first step would be to get the hardware recognised and would appreciate direction. Thanks! pacman
 
Old 04-09-2012, 09:41 AM   #8
deepurkel
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Proof of concept

Quote:
Originally Posted by WintonDiesel View Post
Hello,

I have written a lot of MIDI apps, mostly using the MidiShare framework (midishare.sourceforge.net). But like you, I wanted to get something going on Android, and after a lot of digging found some ideas and wrote a simple test program.

Not wanting to modify my stock Acer A-500 tablet (Android 3.2, Kernel 2.6.36.3), I decided to access the Midi USB adapter using the Usb Host classes provided in the SDK.

I tried two different USB Midi adapters, an Edirol UM-1 and an old Turtle Beach one (no model number on it, I think it's the only one they made under that name). Both worked with the same protocol, I just had to change the resources to match the different Vendor and Product ID's. All Midi data is transported in four-byte packets and no setup commands are required; just get USB permission, find the in and out block transfer endpoints, and use multiple threads to prevent stalling.

My test program so far just generates a few fixed NoteOn and NoteOff messages to test the output (played just fine on my Casio synthesizer) and printed the incoming MIDI messages in a TextView to check the input (received the Casio's keyboard messages fine).

The next step will be to implement code to send/receive MIDI to/from a standard midi file, and then to write a full application for a sequencer. But the important thing is proof of concept -- with the latest Android you CAN use a USB Midi interface (at least these two) without rooting the tablet and adding additional drivers.

Brian
Hey Brian,

I'm actually working on a same proof-of-concept like you were doing. I have already the permissions and threads. But now I'm stuck as I don't have much midi and low level expirience. It would be so great if you could post your proof-of-concept or at least a cool hint for the incoming part

#and printed the incoming MIDI messages in a TextView to check the input (received the Casio's keyboard messages fine).

as I wanted to work on a Midi Clock app ...

greets ....
 
Old 04-09-2012, 10:26 AM   #9
P5music
Member
 
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 0
I really cannot understand why that Java midi library I used on Linux and Windows is not on Android too, at least for tablets, because it is impossible that tablets have performances issues. So annoying.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hardware midi possible with fluidsynth and/or timidity backend with GZDoom? Holering Linux - Games 0 10-02-2010 06:42 PM
System determining which hardware interfaces eth0, eth1 by itself; how to change? HowDoIProgramIt Debian 3 06-07-2007 10:48 PM
How to find *hardware* mac addresses on bonded interfaces? TotalDefiance Linux - Software 3 06-06-2006 11:53 AM
Audigy 2 ZS - hardware midi support? & error messages byteframe Linux - Hardware 0 03-25-2006 02:17 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration