In ethnomusicology and musicology, a melody type is a set of melodic formulas, figures, and patterns which are used in the composition of an enormous variety of music, especially non-Western and early Western music. Such music is generally composed by a process of centonization, either freely (i.e. improvised) or in a fixed pattern.
Most cultures which compose music in this way organize the patterns into distinct melody types. These are often compared to modern Western scales, but they in fact represent much more information than a sequence of permissible pitches, since they include how those pitches should function in the music, and indicate basic formulas which serve as a basis for improvisation. In non-improvised music, such as codified liturgical music, it is still usually clear how the melody developed from set patterns.
On one end of the continuum, the right, the melody type is a schema that is quite definite—a specific melody or a tune. When a musician improvises on this schema, he [or she] plays the melody with only slight variations. The basic outline is preserved and is clearly recognized by the listener. The best example...on this end of the continuum is a folk song. A genuine folk song performance is a kind of improvisation. No one person sings it exactly as it came to him [or her]. One of the challenges of folk song research, of course, is to find all the variants of the tune and to try to trace the family relationships.
On the left side of the continuum is the melody type as a mode. Here the melody type is similar to a church mode: a scalar configuration with a preferential order of tones.
...The closer we get to the pole where a melody type is a tune, the more definite and literal is the schema.—May (1983)
A melodic formula, ranging length from a short motif of a few notes to an entire melody, which is used as the basis for musical compositions. It differs from a mode, which simply sets forth a sequence of intervals (in Western music, half tones and whole tones), and from a scale (the notes of a mode in rising order of pitch), in that it is more specific: a melody type spells out actual sequences of tones, just as they are to appear in a piece, as well as particular beginnings and endings, ornaments, and other details. Melody types are found mostly in the music of ancient peoples--the Greeks, Hebrews, and others--and of Eastern peoples--the Arabs, Persians (Iranians), Indians, and others. For...example...raga.—Ammer (2004)
Melody types are considered the precursors to modes and, later, scales. These later developments place less emphasis on the stock of melodic figures, and allow more free composition.
Melody types around the world 
- Modes in Gregorian chant as used in certain genres such as the Tract
- Echos in Byzantine, Armenian, and Russian chant
- Nomos in Ancient Greek music
- the system of Jewish cantillation
- Maqam in Arabic music
- Makam in Turkish music
- Risqolo in Syrian music
- Meqam in Kurdish music
- Muqam in Uyghur music
- Mugam in Azeri music
- Shashmakom in Uzbek music
- Dastgah in Persian music
- Raga in Indian music
- Pathet in Indonesian music
Extra-melodic implications 
In most cases, these melody types are associated with extra-musical implications, particularly emotions (see Indian rasa, for instance). They are also often associated with certain times. For example, most ragas are associated with a certain time of day, or a wayang performance in Java implies a certain succession of pathets.
Many of these traditions have a corresponding rhythmic framework. These include:
See also 
- Slobin, Mark (1982). Tenement Songs: The Popular Music of the Jewish Immigrants. Music in American Life. Urbana: University of Illinois Press. ISBN 0-252-00893-6.
- Koskoff, Ellen (2000). Music in Lubavitcher Life (Urbana: University of Illinois Press), p. 86. ISBN 978-0-252-02591-4.
- May, Elizabeth (1983). Musics of Many Cultures: An Introduction, Part 1, p.274. ISBN 978-0-520-04778-5.
- Ammer, Christine (2004). "Melody type", The Facts on File Dictionary of Music, p.238. ISBN 978-0-8160-5266-0.