Successfully got the program to output a MIDI file instead of a csound score