📘 CodingMarble Learn

Melody: How a Tune Is Built

A melody (tune) is a line of single notes heard one after another. It has two parts: pitch (how high or low each note is) and rhythm (how long each note lasts). The shape a melody makes as it goes up and down is its contour. Moving to the next-door note is a step; jumping further is a leap. The distance between two notes is an interval; the set of notes a melody uses is its scale. Melodies are cut into phrases, like sentences. A question phrase stops unfinished; an answer phrase ends on the home note (tonic). Question + answer make a period. Composers vary a melody by repeating it, moving it higher or lower (sequence), changing its rhythm, flipping it upside down (inversion), or decorating it. Melody expresses feeling: rising lines feel hopeful, falling lines feel calm or sad, leaps feel bold, steps feel smooth.

🎬 Step-by-step story

  1. A melody is notes one after another. Each block is a note. A higher block is a higher pitch. The line shows the shape, called the contour.
  2. Next-door notes are steps (green). Big jumps are leaps (orange). Steps sound smooth; leaps sound bold.
  3. Long blocks are long notes; short blocks are short notes. The pattern of long and short is the rhythm.
  4. The tune has two phrases. The first stops unfinished, like a question. The second ends on the home note, like an answer. Together they make a period.
  5. Vary the tune: move it higher (sequence), change the rhythm, or flip it upside down (inversion). It still feels related.
  6. Your turn: pick a variation and press Play. Tap any block to change its note and hear your own melody.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is a melody the same as a song?

No. A song has melody, words, harmony and rhythm. The melody is just the single line of notes you can hum.

Why do some tunes sound smooth and others jumpy?

Smooth tunes move mostly by steps; jumpy tunes have many leaps.

Can the same notes make two different melodies?

Yes. Change the rhythm (long and short notes) and the tune sounds different.

Why does a tune feel finished at the end?

It lands on the tonic, the home note, at the end of the answer phrase.

How can a changed melody still sound like the same idea?

Sequence and inversion keep the rhythm and the size of the moves, so our ears recognise the shape.

Can I make my own melody?

Yes. Tap blocks to change notes, keep mostly steps, and end on the home note C.

What is a melody?

A melody is a line of single notes played or sung one after another, so that we hear them as one tune. It is the part you hum after a song ends.

Every melody joins two things:

Change either one and you change the melody. The same pitches with a different rhythm can sound like a new tune.

Contour, steps and leaps

Contour

Draw a line through the notes on paper and you see the melody's contour (shape). It can rise (ascending), fall (descending), make an arch (up then down), a valley (down then up), or a wave. The highest note is often the emotional peak, called the climax.

Steps and leaps

Moving to the next note of the scale is a step (conjunct motion). Jumping over notes is a leap (disjunct motion). Mostly-step tunes feel smooth and are easy to sing. Leaps add energy. Good melodies often follow a big leap with steps in the other direction.

Range

The distance from the lowest to the highest note is the range. A children's song may span only five or six notes; an opera aria can span two octaves.

Intervals and scales

An interval is the distance between two pitches. We count it by letter names, including both ends: C to D is a 2nd, C to E a 3rd, C to G a 5th, C to the next C an octave (8th). Small intervals (2nds) are steps; 3rds and larger are leaps.

A scale is the ordered set of notes a melody uses. The major scale (sa re ga ma pa dha ni in Indian sargam) sounds bright; the minor scale often sounds darker. The pentatonic scale has five notes and is found in folk music all over the world, from China to Scotland to West Africa. The first note of the scale is the tonic or home note; melodies usually feel finished when they land there.

Phrases and periods

Melodies are made of phrases, like sentences in speech. A phrase is often 4 bars long and ends with a small pause, called a cadence (a musical comma or full stop).

A question phrase plus an answer phrase make a period. Many folk songs, hymns and pop choruses are built from periods.

Varying a melody and what it expresses

Composers build long pieces from short ideas. A short memorable idea is a motif. Ways to develop it:

How melody expresses feeling

Rising lines feel hopeful or excited; falling lines feel calm, tired or sad. Smooth steps feel gentle; wide leaps feel bold or joyful. Fast short notes feel lively; long notes feel solemn. Listen and ask: where is the climax, and how does the tune get home?

Key formulas and definitions

Worked examples

1. A tune goes C D E F G F E D C. Describe its contour and motion.

It rises step by step to G, then falls back to C: an arch contour, all conjunct (steps).

2. Name the interval from C up to G.

Count C(1) D(2) E(3) F(4) G(5): a 5th. It is a leap.

3. The motif E-D-C is moved to G-F-E. What variation is this?

The same shape starting two notes higher: a sequence.

4. Phrase 1 ends on D, phrase 2 ends on C (the tonic) in C major. Which is the answer phrase?

Phrase 2, because it ends on the tonic and sounds finished. Together they form a period.

Common mistakes

Practice quiz

1. A melody is mainly made of:
2. Moving from C to D is a:
3. A phrase that ends on the tonic usually sounds:
4. Repeating a motif starting on a higher note is called:
5. The overall up-and-down shape of a melody is its:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is melody in music in simple words?

Melody is the tune: a line of single notes, each with a pitch and a length, heard one after another.

What is the difference between a phrase and a period?

A phrase is one musical sentence. A period is two phrases, a question and an answer, that belong together.

What is melodic contour?

The up-and-down shape of a melody, such as rising, falling, arch, valley or wave.

Where this is taught

Spain1º BachilleratoMusical Language
China八年级(初二)Sem.1 U1 Secrets of melody

Learn first

Learn next

Related lessons

All Music lessons