A melody is the most direct form of musical thought — a single line that carries emotion, direction, and identity. Learning to write melodies is learning the fundamentals of musical logic.
WHAT IS A MELODY?
A melody is a succession of pitches with rhythm. But that definition describes almost any sequence of notes, including noise. What distinguishes a melody — what makes it memorable, singable, expressive — is a set of properties that can be analyzed and understood.
The key properties:
Contour: the overall shape of the melodic line — rising, falling, arch-shaped, wave-shaped, or static. The contour creates a sense of direction and arrival. A melody that consistently rises creates tension; a melody that falls creates relaxation. Most effective melodies combine both.
Range: the distance between the highest and lowest pitch. Melodies with a narrow range (less than a fifth) tend to feel contained and intimate; melodies with a wide range (more than an octave) create drama and require technical skill to perform.
Step motion vs. leaps: melodies that move primarily by steps (whole tones and semitones) feel smooth; melodies with large leaps feel dramatic. Good melodic writing typically balances step motion with selective leaps, and follows leaps with motion in the opposite direction.
Climax: most effective melodies have a single climactic point — the highest pitch, the longest note, or the most harmonically tense moment. This climax creates a sense of the melody going somewhere.
Phrase structure: melodies are divided into phrases — coherent sub-units typically four or eight bars long. Phrases often come in pairs: question (antecedent) and answer (consequent). The antecedent typically ends on an unstable harmony; the consequent ends on a stable one.
THE SINGABLE LINE
A melody that cannot be sung is rarely effective, even for instruments. "Singability" does not mean the melody must be in a comfortable vocal range — it means that a performer can internalize its logic, predict its direction, and shape it expressively.
Testing a melody by singing it (even imperfectly) is one of the most useful compositional habits. If you cannot follow the logic of your own melody with your voice, it may lack clarity.
MELODIC DEVELOPMENT
Once a melody exists, the composer's task is to develop it — to transform it over time so that the listener hears both continuity (the original idea is still recognizable) and change (the idea has gone somewhere new).
Basic development techniques:
Sequence: repeating the melodic idea at a different pitch level. Bach sequences are the textbook example — the same melodic gesture repeated stepwise downward or upward creates forward harmonic motion.
Inversion: flipping the melody upside down — every ascending interval becomes descending, and vice versa. The result is related to the original but with a different emotional direction.
Retrograde: playing the melody backwards. The result is often not recognizable to the ear but creates a sense of symmetry on paper.
Augmentation/Diminution: playing the melody in longer note values (augmentation) or shorter ones (diminution). Augmentation creates a sense of expansion and weight; diminution creates agitation.
Fragmentation: taking a small fragment (two or three notes) from the original melody and developing only that fragment. Beethoven's development of the four-note motto from the Fifth Symphony is the canonical example.
MELODIC LANGUAGE AND STYLE
The melodic language of a piece — which intervals it favors, how phrases are shaped, what harmonic implications are created — is one of the primary determinants of style. A pentatonic melody (using five pitches) sounds different from a chromatic melody; a melody using only stepwise motion sounds different from one using frequent leaps.
MELODIC GRAVITY AND TENDENCY TONES
Within a given scale, certain pitches behave as if they are pulled toward others. In tonal music, the leading tone (the seventh scale degree) pulls upward to the tonic; the fourth scale degree often resolves downward to the third; the sixth scale degree tends downward to the fifth. These tendencies are not arbitrary — they emerge from the acoustic relationships between pitches and from centuries of repeated listening. Effective melodies respect these tendencies most of the time and violate them strategically for expressive effect.
When a composer writes a melody that ends on the leading tone instead of the tonic, the result feels unfinished, suspended, expectant. This is sometimes exactly what the composer wants. When a melody leaps to the leading tone and then steps up to the tonic, the result feels inevitable and satisfying. Understanding tendency tones is understanding the magnetic field within which melodies operate.
THE GREAT MELODIC TRADITIONS
Each musical culture has developed its own approach to melody. The Gregorian chant tradition, compiled and codified mainly between the eighth and tenth centuries, organized melodies into eight modes with characteristic ranges, finals (resting points), and recitation tones. The chant melodies are stepwise, narrow in range, and shaped to the rhythm of Latin text — they teach the close relationship between melody and language.
The Italian operatic tradition of Bellini, Donizetti, and early Verdi developed bel canto — beautiful singing — as a melodic ideal. Bel canto melodies use long arcing phrases, ornamental cadenzas, and expressive use of the entire vocal range. Bellini's "Casta diva" from Norma (1831) is an extended example: a single melodic line that sustains attention for several minutes through purely melodic means.
The German Lied tradition of Schubert, Schumann, and Brahms developed a more concentrated lyrical style suited to the intimate scale of voice and piano. Schubert's melodies have an unusual property: they often feel folk-like in their simplicity while being harmonically and rhythmically far more sophisticated than actual folk songs. The opening of "Du bist die Ruh" demonstrates this — its eight-bar melody could not be more simple yet is unmistakably Schubert.
Folk and traditional musics worldwide offer endless models of melodic shape. Appalachian ballad melodies (mostly pentatonic), Irish dance tunes (highly ornamented stepwise melodies in modal scales), Indian raga (highly developed melodic systems with detailed rules for ornamentation and pitch sequence), and West African praise singing all show what is possible when melody operates without harmonic accompaniment.
MOTIVIC ECONOMY IN MELODY
Great melodies are rarely just sequences of pretty notes. They are typically built from a small motivic cell — two or three notes — that recurs throughout the melody in transformed form. The opening of "Twinkle Twinkle Little Star" uses two motivic ideas: the doubled note (C-C, G-G, A-A, G), and the descent (F-E-D). These two cells generate the entire melody. The opening of Beethoven's "Ode to Joy" is built almost entirely from stepwise motion within a fifth — but the way the steps are rhythmically and harmonically organized creates a melody of unmistakable identity.
The principle of motivic economy says: do more with less. A melody that introduces a new idea every two bars typically lacks coherence; a melody that develops a single idea across eight or sixteen bars typically feels purposeful. This principle scales: it applies to short folk songs and to the longest symphonic themes.
THE PROBLEM OF THE OPENING
Beginning a melody is one of the hardest compositional decisions. The opening notes establish the key, the meter, the character, and the range of subsequent expectations. Composers often spend disproportionate time on openings.
Several effective opening strategies appear repeatedly in the repertoire. The leap up to the tonic from the fifth below (the opening of "Auld Lang Syne") creates an immediate sense of arrival. The descending scale from the fifth scale degree (countless folk melodies) immediately establishes the mode. The rhythmic motto repeated on the same pitch (Beethoven's Fifth: G-G-G-E♭) sets up motivic territory before any melodic exploration begins. Studying how great melodies begin teaches the most about how to start your own.
EXERCISE: MELODY WRITING
Write three eight-bar melodies: 1. A melody that moves primarily by step, with a single climactic leap 2. A melody that uses mostly leaps but resolves each leap with opposite step motion 3. A melody you could hear a child singing — simple, memorable, clearly shaped
Sing each one. Which is most singable? Which is most expressive? What does this tell you about your current melodic instincts? Then take your favorite of the three and write three transformations: invert it, augment it (double the rhythmic values), and write a sequence of its opening three notes ascending by step. These four versions — original, inversion, augmentation, sequence — give you a starter kit of melodic development tools that will serve any future composition.