A simple method for coding the melody of a song as a sequence of up and down pitches. Only three letters are used (u=up, d=down, r=repeat) to describe the melodic contour, which is sufficient to distinguish between many tunes. See
Musipedia and
music search.