Found a nice article on generating MIDI files in Java (while not using the Java Sound API, which does not appear to be included with Android) at this link:
Generating simple MIDI files using Java, without using the Java Sound API
From that article, I began to learn about:
- MIDI file format
- deltas
- timebase
- in MIDI, notes are not specified by duration but by their on/off times