Skip to content

Writing Melodies and Phrases: Contour, Motif Development, Question/Answer Phrasing, and Non-Chord Tones

Melody is the part of a song listeners remember and hum. Where the Songwriting With Progressions lesson teaches you how to choose the chords and the Improvisation Basics lesson teaches you how to generate melodic lines in real time over a backing, this lesson teaches the compositional craft of writing a strong, pre-composed melody — a memorable melodic line for a song, a vocal, or an instrumental theme that a listener can sing back after one hearing. The skill set is distinct from improvisation (which is spontaneous) and from chord-melody arranging (which layers melody over a self-accompanied bass and chord): melody writing is the act of choosing, refining, and shaping a single line until it carries emotional weight and stays in the ear.

The craft rests on five pillars. First, melodic contour — the arc or shape of the line as it moves through pitch space. A melody that only goes up sounds frantic; one that only goes down sounds deflated; the strongest melodies trace a balanced arc that rises toward a climax and then resolves back down. Second, motif construction and development — a short, memorable three-to-five-note idea (a motif) that is repeated, varied, sequenced (transposed to a new starting pitch), fragmented, or inverted to build an entire melody from a single seed. Third, question/answer phrasing — the antecedent/consequent structure where a four-bar phrase ends on an unstable note or chord (the question) and is followed by a four-bar phrase that resolves to the tonic (the answer). Fourth, chord-tone targeting and non-chord tones — landing on chord tones (root, third, fifth, seventh) at strong beats while using passing tones, neighbor tones, suspensions, anticipations, and appoggiaturas on weak beats to add color and direction. Fifth, rhythmic interest — the rhythm of the motif is often more identifiable than its pitches, and syncopation, rhythmic displacement, and strategic rests give a melody its groove and its breathing room.

Work through the five sections below in order. Section 1 covers melodic contour — arc shapes, climax placement, stepwise vs leap motion, and balanced phrasing. Section 2 covers motif construction and development — how to build a short memorable idea and extend it through repetition, sequence, variation, fragmentation, and inversion. Section 3 covers question/answer phrasing — the antecedent/consequent period, open vs closed endings, and how the harmonic rhythm supports the melodic phrase structure. Section 4 covers chord-tone targeting and non-chord tones — which tones to land on, and the catalog of embellishing tones (passing, neighbor, suspension, anticipation, appoggiatura, escape) that connect them. Section 5 covers rhythmic interest — motif rhythm as identity, syncopation, displacement, and rest as a compositional tool. The companion quiz at the bottom of this page tests whether you can identify a contour type, a motif-development technique, or a non-chord-tone classification from a description.

Five melodic-craft sections — contour, motif development, question/answer phrasing, chord-tone targeting + non-chord tones, and rhythmic interest, plus a companion quiz

Loading…

Loading...

Practice this lesson

Chord practice routine

15 min · Balanced · Major · key of C

Keep your chord vocabulary warm with a balanced routine.

Writing Melodies and Phrases: Contour, Motif Development, Question/Answer Phrasing, and Non-Chord Tones FAQ

How do you write a good melody?

A good melody is built from a short, memorable motif (3–5 notes) that is developed through repetition, variation, and sequence, tracing a balanced contour that rises toward a climax and resolves back down. The workflow is: (1) improvise or find a 3–5 note seed idea that sticks in your ear; (2) repeat it exactly once or twice so the listener recognizes it; (3) vary it — change the rhythm, transpose it to a new starting pitch (sequence), or invert its contour; (4) arrange the phrases in a question/answer structure where the first four-bar phrase ends openly (on an unstable note or the V chord) and the second resolves to the tonic; (5) make sure strong beats land on chord tones (root, third, fifth) while weak beats carry passing tones or neighbor tones. The result is a melody that feels both familiar (because of the repetition) and fresh (because of the variation).

What is a melodic motif and how do you develop one?

A motif is a short, recognizable melodic idea — typically 3–5 notes with a distinctive contour and rhythm — that serves as the seed for an entire melody. Beethoven's Fifth Symphony opens with a four-note motif (short-short-short-long) that is developed across the entire movement. Development techniques include: repetition (playing the motif again, exactly or at a new pitch level), sequence (transposing the motif to start on a different scale degree, preserving its interval pattern), variation (changing one or two notes or the rhythm while keeping the shape recognizable), fragmentation (using only a portion of the motif, such as its first two notes), and inversion (flipping the contour upside down so ascending intervals become descending). The goal is to build a melody that feels unified — every phrase traces back to the same seed — while still surprising the listener through the development.

What is question and answer phrasing in a melody?

Question/answer phrasing (also called antecedent/consequent) is the most common melodic phrase structure in Western music. The melody is organized into pairs of four-bar phrases: the first phrase (the antecedent, or question) moves away from the tonic and ends on an unstable note or chord — typically the dominant (V) — creating a sense of openness that asks a question. The second phrase (the consequent, or answer) mirrors the contour of the first but resolves to the tonic (I) at the end, providing closure. The two phrases often share the same opening motif so the listener perceives them as related; the difference is in the ending. A melody that ends every phrase on the tonic sounds static; one that never resolves sounds restless. The question/answer pair balances tension and release, which is why it forms the backbone of folk songs, pop choruses, classical themes, and jazz heads.

What are non-chord tones and when should you use them?

Non-chord tones (also called embellishing tones or non-harmonic tones) are melody notes that do not belong to the underlying chord but are used to connect, decorate, or delay the chord tones. The main types are: passing tones (scale steps that connect two chord tones by stepwise motion), neighbor tones (a step above or below a chord tone that returns to it), suspensions (a chord tone from the previous chord held over into the new chord, then resolved down by step), anticipations (a chord tone from the upcoming chord arrived at early), appoggiaturas (an accented non-chord tone approached by leap and resolved by step in the opposite direction), and escape tones (an unaccented non-chord tone approached by step and resolved by leap in the opposite direction). The rule of thumb: land on chord tones at strong beats (beats 1 and 3), and use non-chord tones on weak beats (beats 2 and 4, or the off-beats) to add color, direction, and emotional tension without undermining the harmony.