<P> The melodies existing in most European music written before the 20th century, and popular music throughout the 20th century, featured "fixed and easily discernible frequency patterns", recurring "events, often periodic, at all structural levels" and "recurrence of durations and patterns of durations". </P> <P> Melodies in the 20th century "utilized a greater variety of pitch resources than ha (d) been the custom in any other historical period of Western music ." While the diatonic scale was still used, the chromatic scale became "widely employed ." Composers also allotted a structural role to "the qualitative dimensions" that previously had been "almost exclusively reserved for pitch and rhythm". Kliewer states, "The essential elements of any melody are duration, pitch, and quality (timbre), texture, and loudness . Though the same melody may be recognizable when played with a wide variety of timbres and dynamics, the latter may still be an "element of linear ordering" </P> <P> Different musical styles use melody in different ways . For example: </P> <Ul> <Li> Jazz musicians use the term "lead" or "head" to refer to the main melody, which is used as a starting point for improvisation . </Li> <Li> Rock music, melodic music, and other forms of popular music and folk music tend to pick one or two melodies (verse and chorus, sometimes with a third, contrasting melody known as a bridge or middle eight) and stick with them; much variety may occur in the phrasing and lyrics . </Li> <Li> Indian classical music relies heavily on melody and rhythm, and not so much on harmony, as the music contains no chord changes . </Li> <Li> Balinese gamelan music often uses complicated variations and alterations of a single melody played simultaneously, called heterophony . </Li> <Li> In western classical music, composers often introduce an initial melody, or theme, and then create variations . Classical music often has several melodic layers, called polyphony, such as those in a fugue, a type of counterpoint . Often, melodies are constructed from motifs or short melodic fragments, such as the opening of Beethoven's Fifth Symphony . Richard Wagner popularized the concept of a leitmotif: a motif or melody associated with a certain idea, person or place . </Li> <Li> While in both most popular music and classical music of the common practice period pitch and duration are of primary importance in melodies, the contemporary music of the 20th and 21st centuries pitch and duration have lessened in importance and quality has gained importance, often primary . Examples include musique concrète, klangfarbenmelodie, Elliott Carter's Eight Etudes and a Fantasy (which contains a movement with only one note), the third movement of Ruth Crawford - Seeger's String Quartet 1931 (later re-orchestrated as Andante for string orchestra), which creates the melody from an unchanging set of pitches through "dissonant dynamics" alone, and György Ligeti's Aventures, in which recurring phonetics create the linear form . </Li> </Ul>

Which term describes the range of the melody