← All articles
musicmusic theoryJuly 24, 20269 min read

Rhythm, Melody and Harmony Explained

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

A song can feel like one flowing thing, but several musical layers are working together. Three of the most useful are rhythm, melody and harmony, and you can learn to hear each one separately.

Rhythm shapes musical time

Rhythm is the pattern of sounds and silences through time. It includes the steady beat you tap your foot to, but it also includes notes that arrive early, late, quickly or slowly around that beat. A rhythm can be simple and even, or full of pauses and surprises.

Tempo tells you how fast the beat moves, while metre groups beats into repeating patterns. In common time, beats often gather in groups of four. You can hear rhythm most clearly by clapping along without singing the tune.

You can hear rhythm even without pitched notes. A drummer can create a complete pattern using only different attacks and silences. Rhythm gives music momentum and expectation, because your brain begins to predict where the next beat or accent should land. A surprise feels surprising only because a pattern has already been established.

Melody is the line you remember

Melody is a sequence of notes heard as a connected musical idea. It is usually the part you hum after the song ends. Melodies move up, down or repeat, and their shape helps create feelings such as calm, excitement or suspense.

A good melody often balances repetition with change. Repetition gives your ear something familiar to hold, while small changes keep the line alive. Short musical phrases can work like sentences, with pauses and endings that make the tune feel organised. Sing a familiar tune slowly and notice where one phrase seems to ask a question and the next seems to answer it. That shape is part of the melody's design.

Harmony adds support and colour

Harmony happens when notes sound together or when chords support a melody. It can make the same tune feel warm, tense, bright or sad. Change the harmony beneath a melody and its emotional character may shift, even when the tune stays the same.

The three layers constantly affect one another. A melody can begin before the main beat, creating a playful push. A chord can make one melody note feel restful and another feel unsettled. A pause in the rhythm can make the return of both melody and harmony feel stronger. Music becomes expressive through these relationships, not through isolated parts.

Try listening in layers:

  • •Tap the steady beat to find the rhythm.
  • •Hum the main tune to isolate the melody.
  • •Listen for lower notes or chords underneath.
  • •Notice where the harmony feels settled or tense.

Why some notes blend and others clash

A musical note is a vibration with a frequency, measured in cycles per second. When two notes sound together, the relationship between their frequencies shapes how they combine. An octave has a frequency ratio of two to one, which is why two notes an octave apart sound so similar that they share a letter name. A perfect fifth is close to three to two. Notes related by simple ratios tend to blend smoothly, while more complex relationships produce roughness and tension.

Modern Western instruments such as the piano use a compromise called equal temperament. The octave is split into twelve equal steps, so each interval is slightly adjusted from its pure ratio. The fifths are very slightly narrow, and some thirds are noticeably wide, but every key works equally well. Tension is not a fault in harmony. Composers deliberately use clashing notes and then let them move to calmer ones, and that pull from tension towards rest is a large part of what makes chords feel expressive.

Texture describes how the layers are stacked

Musicians use the word texture for the way lines are combined at any moment. The simplest is monophony, a single melody with nothing underneath, such as one person singing alone or a group of voices singing the same line in unison, as in Gregorian chant. Homophony is a melody supported by chords that move with it, which describes most pop songs with a singer over guitar or piano. In homophony the melody clearly leads and the harmony follows its rhythm and phrasing.

Polyphony layers two or more independent melodies, each interesting on its own. A round such as Frere Jacques is the easiest example to try: when a second group starts the same tune later, harmony appears from lines that were never written as chords. Composers such as Bach built whole fugues this way. Some traditions, including much Arabic music and Irish session playing, also use heterophony, where several players perform slightly different versions of the same tune at once. Listening for texture helps you hear how rhythm, melody and harmony are being shared out.

Building chords and hearing them move

You can build the most common chords on a piano keyboard by playing every other white key. Start on C and play C, E and G together: that is a C major chord. Start on A and play A, C and E to get A minor. The difference lies in the distances. In a major chord, the middle note sits four semitones above the bottom note and the top note three semitones above that. In a minor chord the order is reversed, three then four. Lower the E in a C major chord to E flat and the same chord suddenly sounds darker.

Chords gain meaning from the order in which they move. In the key of C, the chords built on the first, fourth and fifth notes of the scale, C, F and G, are the backbone of countless folk, blues and rock songs. Moving from G to C sounds like arriving home, and this move, called a perfect cadence, is a standard way of ending a phrase or a whole piece. A loop of four chords, C, G, A minor and F, underpins so many pop songs that comedy musicians have built whole routines around singing dozens of hits over it.

Hearing three beats against two

One of the richest rhythmic effects comes from layering two different divisions of the same stretch of time. Suppose one hand claps three evenly spaced beats while the other claps two in the same span. To fit them together, divide the span into six small pulses, because six is the smallest number that both two and three divide into. Count one to six steadily. The three-beat hand claps on one, three and five, while the two-beat hand claps on one and four. Together they make a lopsided, rolling pattern, with both hands striking together only at the start of each cycle.

Musicians call this a cross-rhythm or polyrhythm. In much West African drumming, several patterns of twos and threes run at once, and listeners can shift their attention from one layer to another. European composers used a related trick called hemiola, often near a cadence, where music grouped in threes is briefly accented as if it were grouped in twos. Leonard Bernstein's song America, from West Side Story, alternates the two feelings bar by bar, so you can hear the pulse regrouping as the words go by. Once you can clap three against two, you start noticing it in all kinds of music.

The takeaway

Rhythm gives music its timing, melody gives it a memorable line, and harmony gives that line support and colour. Hear them one at a time, then listen again for how they cooperate.

Practise this

Questions from Harmony and Texture

Reading about something is not the same as being able to recall it. These are real questions from the Harmony and Texture unit in our Music track, answers and explanations included. The unit has 119 in total across 23 steps.

  • Fill the blankLevel 3

    1. A higher harmony line sung above the main tune, often in a hymn or carol, is called a ____.

    • descantcorrect
    • bass
    • drone
    • rest

    A descant is a decorative harmony part sung above the main melody.

  • Multiple choiceLevel 2

    2. In music, texture describes...?

    • how the layers of sound fit togethercorrect
    • how loud the music is
    • how fast the beat goes
    • the words of a song

    Texture is about how many layers of sound there are and how they fit together.

  • Multiple choiceLevel 2

    3. Counterpoint is the art of combining...?

    • two or more independent melodies that fit togethercorrect
    • loud sounds and soft sounds
    • fast beats and slow beats
    • a melody with no other parts

    Counterpoint weaves two or more independent melodies so they fit nicely together.