convereted :melody to a map