Getting information about a MIDI file
Purpose. Displays general information about a MIDI file: MIDI file type, division type, timing resolution, length (in ticks) and duration (in μs)
java MidiFileInfo [[ -f ] | [ -u ] | [ -s ]] [ -i ] [ midifile ]
Bugs, limitations. Some combination of options do not work. With Sun's implementation tick and microsecond length are only shown with option -i. With Tritonus, length and duration cannot be displayed at all.
Source code. MidiFileInfo.java