convert enum MidiType into enum class

more work needed in midi/midiinstrument.{h,cpp}?