parser to produce melodic contour strings of files