Aha Chord
CoursesReviewTopics

© 2026 LastCapsule Inc.

  • Tools
  • About Aha Chord
  • Terms of use
  • Privacy policy
  • Contact(opens in a new tab)
Beginner · About 12 min

How melody and chords fit together

In songs you know well, how do the melody and the chords fit together?

If a and its don’t fit together, the notes clash and the music quickly sounds muddy. Once you understand how they fit, you can add chords to a melody. You can also write a melody over chords. Let’s start by listening to “Mary Had a Little Lamb.”

1 / 4

Learn

Here is “Mary Had a Little Lamb” with chords. The top area shows the melody (higher notes are higher up). The strip at the bottom shows the chord playing behind the melody. Each ● above the strip is a (where you would clap). Each group of 2 beats between the darker vertical lines is a .

GFEDC
CC E GCC E GGG B DCC E G
GFEDC
CC E GCC E GGG B DCC E G

Predict

Each melody note plays over a chord. Do you think every melody note is one of the 3 notes of that chord?

Trust your first instinct and pick one within 10 seconds (10 sec left).

The notes that are in the chord now have color. Where are the notes without color?

Chord noteNote outside the chord

GFEDC
CC E GCC E GGG B DCC E G
GFEDC
CC E GCC E GGG B DCC E G

Let’s replace each of the 5 notes without color with the note played just before it. Then every note is a chord note. Compare the two versions.

Chord noteNote outside the chord

GFEDC
CC E GCC E GGG B DCC E G
GFEDC
CC E GCC E GGG B DCC E G

Insight

The note at the start of each bar and the long notes are chord notes, so they don’t sound muddy. But a melody made only of chord notes sounds dull. In between, short notes outside the chord link the chord notes. They move to the next note up or down.

Now let’s add chords to a melody. For the bar with the orange frame, find a chord that fits on the pads below (the C, F, G, and Am buttons). The chord should contain both the note at the start of the bar and the long note. When it fits, you move on to the next bar.

Chord noteNote outside the chord

AGFEDCB
C

Start of the bar and long note in this bar: E and G

Now let’s do the opposite and write a melody over a chord progression. For each bar, use the keyboard to choose the note at the start of the bar from the notes of that chord. Between two bars, one more note is added automatically. It is right next to the note at the start of the next bar.

Chord noteNote outside the chord

FEDCBAG
C

Start of bar 1 (C chord: C, E, G)

2 / 4

Recap

What we found

  • In “Mary Had a Little Lamb,” the note at the start of each bar and every long note were all notes of the chord playing at that moment
  • There were 5 notes outside the chord. All of them were short, moved right away to the next note up or down, and connected the chord notes
  • When we changed the notes outside the chord into chord notes, nothing clashed, but the melody sounded dull
  • To add chords to a melody, choose chords that contain the note at the start of each bar and the long notes. To write a melody over chords, put a chord note at the start of each bar and connect those notes with short notes in between.
3 / 4

Apply

The same note can change its role when the chord changes

In “Mary Had a Little Lamb,” D was outside the C chord in bar 1. In bar 3, it was a note of the G chord. Each time the chord changes, the role of the same note can change too.

Chord noteOutside

ChordMelodyCMelodyEMelodyG
CChord noteChord noteChord note
FChord noteOutsideOutside
GOutsideSemitone above BOutsideChord note
AmChord noteChord noteOutside

Over the G chord, C is outside the chord. It is just a above the B in the chord (the very next key on the keyboard). So it clearly clashes when you hold it.

A note outside the chord clashes when you hold it long

Over the G chord, we’ll play the melody B – C – D. The middle note, C, is outside the G chord. Only its length and where it starts change. Let’s compare the two versions.

DCB
G

The clash is strongest when the note is just a semitone above a chord note (like C above the B in the G chord). In bar 3 of the melody you added chords to, the C in D – C – B was also a C over the G chord. It passed by quickly, so it was hard to notice.

If your melody sounds muddy in a music-making app, check the start of each bar and the long notes

When a melody you entered in a music-making app sounds muddy, the cause is usually a note outside the chord at the start of a bar or on a long note. Move that note up or down a semitone or a to make it a chord note. Or change the chord to one that contains that note. You can choose the notes of a harmony line (a that sings along with the melody) in the same way. → “Counterpoint in pop: harmonies and countermelodies”

There are several patterns for using notes outside the chord

There are several common patterns for using notes outside the chord (). → “Non-chord tones: passing tones, neighbor tones, and more”

Level: IntermediateGo deeper
  • In bar 7 of “Mary Had a Little Lamb,” E is a short note outside the chord. It falls at the start of beat 2, which is a weak beat. Notes outside the chord that pass quickly usually follow 3 guidelines. ① They are short and fall on a weak beat. ② They come from the next note up or down, and they move on to the next note up or down. ③ The note they move to is a chord note. But these are only guidelines. Some music puts a clashing note on a strong beat on purpose and then lets it right away. → “Melodic contour: the shape of a melody”, “Non-chord tones: passing tones, neighbor tones, and more”, “Meter and time signatures”
  • A melody made only of chord notes tends to just go through the notes of each chord in order (an arpeggio). Between two notes of a chord, one white key is skipped (like C, E, and G), so the melody can’t move to the next note up or down. But this is a tendency, not a rule. Some well-loved melodies use only chord notes.
  • Some notes outside the chord sound beautiful even when you hold them, like D and A over the C chord. These notes are treated as . → “Seventh chords, extensions, and more”
  • A note that clashes when you hold it over a chord is sometimes called an avoid note. A typical avoid note is a semitone above a chord note. Over the G chord, C is the 11th. If you count G as 1, C is the 4th note, one octave higher. Which notes count as avoid notes depends on the type of chord, the , and the tradition you follow. → “Musical modes”, “Jazz harmony”
4 / 4

Check

Up next

Lyrics and melody: setting words to music

How do you write a melody so that listeners can clearly understand the words?

Next topic

Answer all the Check questions above to move on.