A melody is not a scale. A scale is the alphabet; a melody is a sentence. Knowing every mode in every key tells you as much about writing a tune as knowing the dictionary tells you about writing a paragraph — which is to say, necessary and nowhere near sufficient.
What follows is what a melody is actually made of. Most of it is not about pitch at all: shape, repetition, rhythm and silence do more work than note choice, which is the opposite of how theory is usually taught.
Contour — The Shape
Play a melody to someone and ask them to describe it. They will not say "it went to the flat seventh." They will move their hand — up, over, down. That gesture is contour, and it is the most memorable property a melody has.
The practical use: decide the shape before the notes. Draw it in the air. A melody that knows where its high point is and when it gets there will beat one assembled note by note from a scale, every time.
Steps Against Leaps
Moving to the next note in the scale is a step. Jumping further is a leap. Melodies made only of steps wander and feel shapeless; melodies made only of leaps sound like exercises and are hard to sing.
The convention that has held across centuries and genres: a leap creates a debt, and steps in the opposite direction pay it back. Jump up a sixth, then walk back down. Your ear expects it, and honouring the expectation is what makes a wide interval sound intentional rather than accidental.
The Motif
A motif is a fragment short enough to recognise instantly — often three or four notes, sometimes two. It is the atom of melodic writing, and almost every melody worth remembering is one motif, repeated and altered.
That is the part people resist. Writing feels like it should mean constant invention, so beginners write eight bars of continuously new material and wonder why nothing sticks. Memorability comes from repetition. Interest comes from varying what you repeat. Those are not in conflict; they are the whole technique.
Sequence — the same shape, starting on a different note. The single most useful device in melodic writing, and instantly recognisable once you know the name.
Inversion — the same shape upside down. Up a third becomes down a third.
Retrograde — backwards. More useful as a source of ideas than as something an audience hears.
Augmentation / diminution — same notes, doubled or halved in length. A hook slowed to half speed becomes a pad; sped up it becomes a riff.
Same rhythm, new notes — often the strongest of all, because rhythm is what the listener actually locked onto.
Question and Answer
Melodies group into phrases, and phrases come in pairs: one that leaves you hanging, one that resolves. The formal names are antecedent and consequent; every songwriter knows them as question and answer.
The question usually ends on an unstable note — the second, the fifth, the seventh — or over a chord that is not home. The answer often starts identically and then ends differently, landing on the root. That shared opening is what makes the pair feel like one thought rather than two fragments.
Four bars out, four bars back is the default in most popular music, and defaults exist because they work. Deviate once you can hear why you are deviating.
Tension and Release
Against any chord, the notes of that chord are stable — land on them and the melody feels settled. Everything else is tension, and tension is not a mistake. A melody built only from chord tones is an arpeggio, and arpeggios are boring precisely because nothing in them needs to resolve.
The craft is in how you leave and return. The classical names describe motions you already use by ear:
Passing tone — step through a non-chord tone on your way between two chord tones. Invisible, universal.
Neighbour tone — step away and come straight back. Decoration around a note you are holding.
Suspension — hold a note from the previous chord into the next one, so it is briefly wrong, then resolve down by step. The most reliable source of emotion in Western music, and the reason sus chords sound the way they do.
Appoggiatura — leap onto a tension note on a strong beat, then step off it. Hits harder than a passing tone because it arrives unprepared and on the beat.
Rhythm Is Half Of It
Take a melody you know and play every note as an even quarter note. It dies. Take the original rhythm and put completely different pitches under it and it is still recognisably the same tune. Melodic rhythm carries more identity than pitch does, which is not what the way theory is taught would lead you to expect.
Two things to control deliberately. Where the phrase starts — on the beat is stable and declarative, before it (a pickup) is conversational and propulsive. And where the long notes fall — the note you hold is the note the listener remembers, so hold the one that matters, not whichever one happened to land at the end of the bar.
Space
Beginner melodies are continuous. Good melodies breathe. Rests are not gaps waiting to be filled — they are what makes the next phrase land, and they are where a vocalist takes a breath, which is a real physical constraint worth respecting even when nobody is singing.
A useful test: if you cannot sing it in one breath, it is probably one phrase too long. Instruments have no lungs, which is why instrumental melodies so often sound exhausting.
One High Point
A melody should reach its highest note once, and preferably late. That note becomes the emotional peak simply by being the extreme — no other device needed. Hit the same high note four times and it stops being a peak and becomes the ceiling.
This is the easiest structural fix available. Find your highest note. If it appears more than once, lower all but the last one and hear what happens to the shape.
What The Mode Actually Does
Modes do not have moods because of some mystical property. Each one differs from a familiar reference by one or two specific degrees, and that degree is the entire character. Find it, lean on it, and the mode announces itself. Avoid it and you have written in the parent scale by accident — the most common reason a "Dorian" idea just sounds minor.
| Mode | The note doing the work | Hear it |
|---|---|---|
| Dorian | The natural 6th, against an otherwise minor scale. Land on it. | run it ↗ |
| Phrygian | The ♭2, a semitone above the root. Instant tension, Spanish colour. | run it ↗ |
| Lydian | The ♯4. Everything lifts. Overused in film scoring for a reason. | run it ↗ |
| Mixolydian | The ♭7 in a major context — the rock and blues one. | run it ↗ |
| Harmonic minor | The raised 7th, and the augmented 2nd it creates below it. | run it ↗ |
| Melodic minor | Raised 6 and 7 going up, natural coming down — the shape changes with direction. | run it ↗ |
Beyond twelve notes
The maqamat of Arabic and Persian music go further: several of their characteristic degrees sit between the keys of a piano. Maqam Rast has a third about 50 cents below the major third — not a flat third, not a major third, a note Western notation has no room for. Maqam Bayati's second sits similarly between.
This matters for melody rather than for harmony. Those microtonal degrees are where the ornamentation lives, and a melody that treats them as "close enough to E♭" is not in that maqam — it is in a Western scale wearing its name.
| Maqam | What makes it itself | Hear it |
|---|---|---|
| Rast | Half-flat 3rd and 7th — roughly 350 and 1050 cents. | run it ↗ |
| Bayati | Half-flat 2nd, around 150 cents. The most common maqam in Arabic music. | run it ↗ |
| Hijaz | The augmented 2nd between ♭2 and 3 — no microtones, all character. | run it ↗ |
| Chahargah | Persian dastgah, two augmented seconds, ceremonial. | run it ↗ |
Actually Writing One
1. Rhythm first, no pitches. Tap or program the rhythm of the line alone. If it is not interesting as rhythm, no choice of notes will save it.
2. Draw the contour. Where does it start, where is the peak, where does it land. One arch is enough for four bars.
3. Find three or four notes that are the motif. Play them until they feel inevitable.
4. Build the phrase by repeating that motif — sequenced, inverted, rhythmically altered. Resist writing new material.
5. Write the answering phrase starting the same and ending on the root.
6. Now check it against the chords and adjust the strong beats — chord tone where you want rest, a step above where you want ache.
Doing it in that order means the melody has shape before it has notes, which is the whole difference between a tune and a scale run.
What Usually Goes Wrong
It never repeats. Eight bars of continuous invention. Nothing to hold onto. Fix: take bar 1 and make bar 3 a sequence of it.
It never rests. Wall-to-wall notes. Fix: delete every fourth bar's worth and let the harmony carry it.
It has no peak, or four of them. Fix: find the highest note, keep one.
It is all steps. Wanders like someone reading a scale. Fix: one leap, early, then step back down through it.
It avoids every tension note. Technically correct, emotionally inert. Fix: the appoggiatura trick above.
It ignores the mode's characteristic degree. A Lydian idea that never touches the ♯4 is in the major scale. Fix: land on that note, on a strong beat, early.