A melody doesn't exist in isolation - it lives on top of chords. The chords underneath change which melody notes sound stable and which sound tense. Understanding this relationship is the key to writing melodies that complement their harmonic seasoning rather than clashing with it.
Chords set the context
The same melody note can sound completely different depending on which chord is playing underneath - the same ingredient tastes different depending on what's around it on the plate. E over a C major chord sounds stable (it's the 3rd), but over F major it sounds like a tense 7th - same note, different meaning.
Chord
Cmaj
Note E is the...
3rd - stable, sweet, consonant
Chord
Am
Note E is the...
5th - solid, strong, grounded
Chord
Fmaj
Note E is the...
7th - tense, wants to resolve, adds colour
Target chord tones on chord changes
The most important moment for your melody is when the chord changes. At that instant, your melody should ideally land on a note from the new chord. This creates a smooth handoff between harmony and melody.
Melody targeting chord tones at each change
C
starts on chord tone
Am
starts on chord tone
F
starts on chord tone
G
starts on chord tone
Bright bars = chord tones, dim bars = passing tones
Strategies for melody over chords
Follow the chord tones
Move the melody to match each new chord. The melody "outlines" the progression. Sounds smooth and natural.
Hold a common tone
Keep a melody note that appears in both chords. The harmony moves underneath while the melody stays still. Creates a pedal effect.
Move by step to the nearest chord tone
If your melody note isn't in the new chord, step up or down to the closest note that is. Smooth voice leading.
Anticipate the next chord
Play a note from the upcoming chord slightly before it arrives. Creates forward momentum and excitement.
Suspend over the change
Hold a note from the previous chord into the new one, then resolve. Creates tension and release at the boundary.
Not all chord tones are equal
Within a chord, different notes have different effects when used as melody notes:
Most stable. Sounds resolved and final. Good for endings and moments of arrival.
Defines major/minor quality. Sweet and melodic. The most common choice for vocal melodies.
Strong and open. Less colourful than the 3rd but very solid. Works well for sustained notes.
Adds colour and tension. Creates a jazzy, sophisticated feel. Wants to resolve down by step.
Using tension intentionally
Sometimes you want the melody to clash with the chord - briefly. This creates tension that makes the resolution more satisfying. The trick is being in control of it:
Chord tone on the beat
Non-chord tone creates pull
Returns to chord tone
The pattern of tension and release across chord changes is what makes a melody feel alive and emotional rather than flat and predictable.
Try it
Keep the melody note fixed and change the chord underneath it.
Same note, different harmony, different emotional meaning.
Key takeaway
Chords define what each melody note means. Target chord tones when chords change - especially the 3rd for colour and the root for stability. Use non-chord tones between changes for movement. The relationship between melody and harmony is what gives music its emotional depth.
You now have the tools to understand and write melodies - contour, steps and leaps, chord tones, motifs, call and response, rhythm, and how melody interacts with harmony. Next up: Harmony - deeper harmonic concepts for richer music.
Create melodies with theory built in
Starts generates melodies that follow the principles covered here - contour, chord tones, and rhythmic variation.