Melody type or type-melody is a set of melodic formulas, figures, and patterns.
"Melody type" is a fundamental notion for understanding a nature of Western and non-Western musical modes, according to Harold Powers' seminal article "Mode" in the first edition of the New Grove Dictionary of Music and Musicians (Powers 1980, 12:376–77, 379, et passim).
Melody types 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.
"Melody type" as used by the ethmnomusicologist Mark Slobin (1982, 186) is defined as a "group of melodies that are related, in that they all contain similar modal procedures and characteristic rhythmic and melodic contours or patterns".
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.