* @param Score
* @param String filename
*/
public static void midi(Score scr, String fileName) {
//Score s = adjustTempo(scr);
SMF smf = new SMF();
try {
double time1 = System.currentTimeMillis();
System.out.println("----------------------------- Writing MIDI File ------------------------------");
smf.clearTracks();
jm.midi.MidiParser.scoreToSMF(scr, smf);
OutputStream os = new FileOutputStream(fileName);
smf.write(os);
double time2 = System.currentTimeMillis();
System.out.println("MIDI file '" + fileName + "' written from score '" +
scr.getTitle() + "' in " + ((time2 - time1) / 1000) + " seconds.");
System.out.println("------------------------------------------------------------------------------");
} catch (IOException e) {