Melody is the main musical element that consists of a sequence of pitches arranged in a coherent and memorable way.