Parsons code

Parsons code

The Parsons code, formally named the Parsons Code for Melodic Contours, is a simple notation used to identify a piece of music through melodic motion—the motion of the pitch up and down. Denys Parsons developed this system for his 1975 book, The Directory of Tunes and Musical Themes. Representing a melody in this manner makes it easy to index or search for particular pieces.

The book was also published in Germany in 2002 and reprinted by Piatkus as The Directory of Classical Themes in 2008.

Parsons Code of Ode to Joy.


  • The code 1
    • Some examples 1.1
  • See also 2
  • References 3
  • External links 4

The code

The first note of a melody is denoted with an asterisk (*), although some Parsons code users omit the first note. All succeeding notes are denoted with one of three letters to indicate the relationship of its pitch to the previous note:

  • u = "up," if the note is higher than the previous note
  • d = "down," if the note is lower than the previous note
  • r = "repeat," if the note is the same pitch as the previous note
  • * = first tone as reference

Some examples

Tune for Twinkle Twinkle Little Star

Problems playing this file? See .

See also


  • "The Parsons Code for Melodic Contours". Musipedia. 
  • Parsons, Denys (1975). The Directory of Tunes and Musical Themes. S. Brown.  
  • Parsons, Denys (2002). The Directory of Tunes and Musical Themes. Bohmeier.  
  • Parsons, Denys (2008). The Directory of Classical Themes. Piatkus. [2]  
  • "Was Parsons right? An experiment in usability of music ..." (PDF). ismir 2003. 

External links

  • Themefinder allows searching musical themes by Parsons Code (called "Gross Contour" on the search page).
  • "The Open Music Encyclopedia" uses Parsons code for encoding songs in their database
  • uses Parsons code (amongst other methods) to search a database of folk tunes.