remove main() from midiparser