final version of rym2MIDI