As per the LGPL (see http://www.androidmusical.com/licenses), I am releasing under the LGPL the source code for the MIDI library used by Musical, which is based upon Tritonus (http://www.tritonus.org)
The project is designed to provide a MIDI file (SMF) reading and writing library (since Android doesn’t include Sun’s javax.sound.midi implementation)
There is very little additional code compared to the standard Tritonus implementation. I have mostly just removed all the standard waveform audio code and left only MIDI-related classes. There were also some minor modifications requires to compile under Android.
Download Android Tritonus MIDI Source Code