convert enum NoteType into enum class