Skip to content

A motion design studio on your own machine: Claude makes the video step by step, you approve every stage. Bring your own Claude Code or API key.

9.7 KB
Raw Blame

Melody craft

Distilled from lessons on melodic basics, on what makes melodies memorable, nine piano-roll melody methods from a producer, and Bach's table of ornaments. Use it to design the motif (blueprint) and to write every melody, hook, counter-line and ornament (score). Everything here must still pass the harmony lock: where the two meet, the harmony lock wins, and the notes below say how to stay inside it.

1. Motion: how the line moves between notes

A melody is mostly its intervals. Sort every move into one of four kinds and choose the mix on purpose:

  • Static (same note repeated): insistence, speech-like rhythm, a hook carried by rhythm alone.
  • Steps (a half or whole step): grounded, connected, restrained; a step-only line has a small range.
  • Thirds (small skips): still close, add shape without breaking the line.
  • Leaps (a fourth or more): freedom, openness and power; they cover range fast (the Star Wars theme is full of them).

Calm or establishing sections lean on steps and repeats; lifts and arrivals open up with skips and leaps. A big leap is usually answered by a step back the other way. Don't scatter notes far apart to look "creative": a line where each note leads naturally to the next is like counting 1 2 3 4 5, and the listener enjoys predicting it. Jumps should be events.

2. What each note does

Notes in a key have jobs, just as chords do, and the job depends on the scale degree, not just the interval:

  • The leading tone (degree 7 in major, a half step under the tonic) pulls up to the tonic, in a melody as much as in a chord. Withholding that resolution ("subverting the leading tone") makes the listener feel cheated: a strong effect, so save it for a planned moment (a deceptive ending, a "not yet").
  • Degree 4 can fall to 3, rise to 5, or leap away to 6 or 2. Each is a different gesture.
  • The same interval says different things on different degrees: 4→2 is not 5→3.
  • Chord tones are the stable anchors. Place the important notes (phrase ends, long notes, downbeats) on them.

3. Phrases: questions and answers

A phrase is a musical sentence, and its ending decides what it is:

  • A question (antecedent) ends unstable: on 2, 5 or 7, or on a chord tone of a non-tonic chord, rising or hanging. It tells the listener there is more to come.
  • An answer (consequent) ends resolved: tonic or a stable chord tone, falling to rest. It lets the listener breathe.

Good melodic structure mostly alternates the two. Options: the same phrase twice with only the ending changed (Q, A); a contrasting answer; two questions before the answer (Q Q A); the same question repeated before the answer; or a question left unanswered, even at the very end of the piece, on purpose. If a melody isn't working, check the phrasing first.

4. Three rules almost every memorable melody follows

  1. The whistle rule: keep the main melody within about an octave and a half, so a person could whistle or hum it. Somewhere Over the Rainbow, Star Wars and Harry Potter all fit.
  2. Pitch motif and rhythm motif together: give the melody small cells that are recognisable by their pitches and by their rhythm (Indiana Jones: the rhythm alone identifies it). Vary one while keeping the other so the cells stay recognisable through the piece (Beethoven 5).
  3. Rising motion, late peak: most strong melodies rise to their highest point late (about 70–85% of the way through the phrase or section), then fall away slightly. A peak halfway through uses up the excitement and the rest just decays. When a melody returns, make the next rise go further (ET builds and builds, then decays gently, then goes higher still).

5. Three ways to start a melody

  • From a cell: write a tiny motif, then build the melody from its shape, intervals and rhythm, re-using the rhythm in the next phrase and pushing the contour higher as you go.
  • From a shape: sketch a contour in chord tones only (rise, fall, rise again), then embellish it with passing and neighbour notes and ornaments. The skeleton keeps the harmony locked; the decoration gives it life.
  • From an interval: choose one striking interval (a minor seventh, a rising sixth, a tritone that resolves) and let it be the motif; John Williams opens many themes this way.

6. The "misremember" test

What survives in memory is what is memorable. After writing a melody, write its hummable reduction: only the contour and the rhythm cells someone would remember after one listen. If the reduction is clearly better or the original loses its identity in it, simplify the melody towards the reduction. Many hooks are best as three neighbouring notes see-sawing.

7. Producer methods, translated into the score

These come from a producer working in a piano roll. Each is written here as something a Strudel score can do with notes.

  • Seesaw: a hook built from three adjacent scale notes moving up and down (Mary Had a Little Lamb). Simple to hum, hard to forget. Use it for the main hook when the genre allows.
  • Yo-yo: play a one-note or simple line and move every other note up an octave (pizzicato or plucked sounds suit it; an echo delay smooths the choppiness). Keep the octave-moved notes on chord tones.
  • Stumble: keep a loop plain and on the grid for most of its length, then let only its last beat or half-bar fall into triplets (quantize ⅓), then return to normal. The listener waits for the stumble and enjoys the return. Strongest when two or more parts (melody and hats, or bass and kick) stumble together. Keep the stumbling notes on chord tones.
  • Pepperoni: take the tails of held chords (the last sliver of each) and give them to a second, more textured part, so it answers in the gaps. Can be turned into an arpeggio. Same pitches as the pad's top notes, so nothing rubs.
  • Pigeon (bounce): give a melody a bobbing, uneven rhythmic articulation (a chopped, gated feel), then copy that same rhythm to the hi-hats and add a clap: the groove comes from the melody.
  • Selfie: take a fragment of the lead, move it up an octave, reverse it (retrograde), and place it elsewhere as an answer or counter-line. Still recognisably "you", flipped. Re-spell for the chord where it lands.
  • Grandfather: one slow line (the grandfather), the same line at double speed (the father), at four times speed (the son), and an augmented, lower version for the bass (the great-grandfather, free to deviate). Layered, they make a family of related parts from one idea; good for builds. Every layer must still fit each chord.
  • Spaghetti: slides between notes (portamento/glide) give a line wobble and character. MIDI notes carry no slide, so mark it in the role's "job" in the blueprint (for whoever remakes it from the MIDI pack) instead of faking it with pitch effects (detune and pitch envelopes are banned by the harmony lock).
  • Flutter (chopping recorded pad audio into a new melody) is an audio technique for a DAW; mention it in the cue sheet as an idea for the MIDI pack, don't imitate it in notes.

8. Ornaments (Bach's table), and how to write them so they pass the harmony lock

Ornaments decorate a note; they never replace the phrase. Their speed is proportional to the tempo: at a quarter-note beat most trill notes are 32nds (groups of eight per beat); in cut time they are 16ths. Too fast sounds ridiculous, too slow sounds lazy. Leave a tiny gap before a trill rather than tying into it.

Ornament Notes (main note = M) Placement
Trill alternates M and the note above starts on the upper note unless the previous note already was the upper note; then start on M
Short trill (Pralltriller) M, upper, M (3 notes) quick, inside one 16th's worth; great on a falling step
Trill with termination trill, then the note below, then M measured, not as fast as possible; common at cadences
Ascending / descending trill starts from below / above, sweeps into the trill on long notes
Mordent M, the note below, M always on the beat, at the speed of the music
Turn upper, M, lower, M (four quick notes) on or just after the main note; lovely in lyrical lines
Appoggiatura a neighbour note on the beat that takes time from M, then resolves by step expressive: play it louder than its resolution (loud to soft)
Acciaccatura a very quick grace note just before the beat crisp, no weight
Schleifer (slide) two quick notes rising from a third below into M on the beat
Arpeggiated chord the chord's notes rolled from the bottom instead of a block chord at an expressive moment

Harmony-lock rules for ornaments (strudel.mjs check judges every note of a melody part against the bar's chord):

  • A non-chord note on the beat must last ¼ beat or less and move by step (1–2 semitones) to the next note. So an upper-note trill start, a schleifer note, a turn's first note or an appoggiatura on the beat must be a 16th or shorter.
  • A non-chord note off the beat may last up to ½ beat, and must move by step to a different next note.
  • A long, expressive appoggiatura is possible only if its note is a chart tension: spell the chord with it (Dm9 for an E over D minor, Csus4 for an F over C) and it may be held as long as you like.
  • Mordents and trills that start on M pass naturally (the neighbour is short, off the beat, and steps back).
  • Velocity: ornament notes slightly softer than the main note, except the appoggiatura, which is louder than its resolution.
  • Ornaments belong on melody-role parts. Never ornament a bass on a chord change (it must play the root) or a chords part.
  • Use them where they mean something: phrase ends, long notes, cadences, the motif's final return. Not on every note.