add midimain, move music player to MidiPlayer, improve Note class