The problem is: Android doesn't implement javax.sound.midi
.
I need a simple free library that allows me to create simple 1-track midi files. I searched the net for it, but can't really find anything, since everything uses javax.sound.midi .
The license needs to be one where I don't need to opensource my linked app.
Any ideas?
I also look开发者_StackOverflow中文版ed into the fileformat itself. However, I am totally not familiar with working with bytes, hexidecimal stuff etc.
So, other option is: are there any simple midi implementations that I can use as reference?
Well, for all you midi needing android devs: check out this Dutch university assignment that contains a very very basic midi file writer. Together with this reference doc you can easily expand it into playing chords, selecting instrument etc.
It worked for me!
I do have opened a feature request for direct streaming access to the synthesizer. If you are interested in streaming midi, please rate, star, comment there.
http://kevinboone.net/javamidi.html
I've recently uploaded a MIDI library written in Java to Google Code:
http://code.google.com/p/android-midi-lib/
For those who come across this more recently Android does, as of API version 23, implement android.sound.midi
which is not an implementation of javax.sound.midi
but does have a very similar API.
精彩评论