added ability to parse and play melodies