made interface generate melody array, fixed single click drag-and-drop bug