I opened a midi file created using another java library ( jfugue ) and saved it as midi using the code in http://jmusic.ci.qut.edu.au/jmtutorial/CPN.html with jMusic1.6.01.jar library.
I examined the original midi file using midicsv. Here are the first few lines.
0, 0, Header, 1, 16, 120
1, 0, Start_track
1, 0, Tempo, 5981792
1, 0, Program_c, 0, 73
1, 0, Pitch_bend_c, 0, 8192
1, 0, Note_on_c, 0, 64, 64
1, 30, Note_off_c, 0, 64, 64
1, 30, Pitch_bend_c, 0, 8519
1, 30, Note_on_c, 0, 66, 64
Here are the first few lines from the midi file saved by jmusic. Clearly a lot of information is lost. ( no note off messages, no pitch bends )
0, 0, Header, 1, 2, 480
1, 0, Start_track
1, 0, Tempo, 5981792
1, 0, Time_signature, 4, 2, 24, 8
1, 0, Key_signature, 0, "major"
1, 0, End_track
2, 0, Start_track
2, 0, Note_on_c, 0, 64, 64
2, 120, Note_on_c, 0, 66, 64
2, 164, Note_on_c, 0, 70, 64
2, 372, Note_on_c, 0, 66, 64
Midi file saved by jmusic sample code at http://jmusic.ci.qut.edu.au/jmtutorial/CPN.html