keep track of melody range for segment