turn enum MidiType into enum class