Jump to content
IGNORED

Programming a MIDI interface for Android


Recommended Posts

Have a project to do for my final year in a computing degree, it can be pretty much anything so I've decided to try my hand at java programming for Android. I have an idea to create a simple interface which can send MIDI signals from the Phone via USB back to a DAW (Basically a clone of this http://createdigitalmusic.com/2009/06/android-midi-controller-musical-app-updates-with-midi-over-wifi/). I've been learning to program with Java for the last 3 years so I hopefully know enough to get by. Does anyone have any experience with MIDI programming on Android? Cheers!

Link to comment
https://forum.watmm.com/topic/75950-programming-a-midi-interface-for-android/
Share on other sites

You can go a bit of a long way round using OSC i.e. Android to OSC to MIDI to PC, check out TouchOSC - http://hexler.net/software/touchosc-android . It's a bit of a faff but it works all the same (though I never did anything of use - couldn't get PureData, which happily (and wirelessly) accepted the OSC data from my HTC desire, to talk to Ableton)

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

I believe that Android has fundamental problems with DSP, but MIDI should be okay? Dunno if you can host USB-MIDI interfaces (as you can with the iPad & Camera Connection Kit), but even if there's no MIDI API already, you should be able to use the USB serial port to send and listen to a arbitrary byte stream. Then maybe clone the Arduino MIDI library: http://arduino.cc/pl...ain/MIDILibrary

 

Parsing MIDI is not rocket science, but a bit tricky nonetheless. Here's my convoluted ObjC implementation:

 

  Reveal hidden contents

 

 

It could probably be optimised a little, but when you look at the Arduino MIDI parser it looks just as messy, and it works so yeah :]

 

good luck & have fun.

 

edit: lol formatting

Edited by Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×