How to Compose a Better Piano Melody (Part 1)
To build a better piano melody, take a simple idea, shape it into AAB phrases like a poem, give it rhythm through beat division (eighth notes, triplets, straight or swing), change a note or two in the repeats, and support it with bass roots and fifths such as D, B, G and A (I–vi–IV–V) in D major.
Key points
- Shape a short idea into AAB phrases, like a poem or a blues verse, with a contrasting closing line that brings the tune to rest.
- Divide the beat (eighth notes give eight slots, triplets give twelve) and place notes on offbeats to make the melody groove.
- Choose a straight or swing time feel; the same notes take on a completely different texture.
- Change one or two notes in repeated lines to avoid monotony or create a question and answer.
- Support the melody with bass roots D, B, G, A (I–vi–IV–V in D major), adding octaves and fifths.
What this lesson teaches
This is Part 1 of Jason Zac's series on building melodies at the piano. It is for anyone who already has a small tune in their head, perhaps one that came to you over a meal or in the shower, and wants to grow it into something catchy and complete. Jason Zac compares it to a seed: the idea exists, but it only becomes a tree if you water it and work on it. The approach works for beginners, and later parts add more intermediate ideas.
The starting tune is just four notes in D major (two sharps, F# and C#): D, E, G, F#.
Step 1: Think like a poet (AAB form)
Poetry verses are often built from repeated lines with a contrasting line, such as A A B. Blues lyrics work the same way: a line is sung, repeated, and then answered by a new line.
Apply this to the melody:
- Line 1: play the four-note idea (A).
- Line 2: repeat it (A).
- Line 3: repeat it again, much the same.
- Line 4: play a new line (B), the turnaround.
The B line can be more complicated than the original, or, as in this lesson, simpler. A simpler closing line breaks the monotony and brings the melody to rest, acting like punctuation at the end of a sentence or paragraph.
Step 2: Give the melody rhythm
A melody is not just a string of notes. It needs to groove. If you play each note on beats 1, 2, 3 and 4, you quickly run out of slots and the music feels slow and flat.
Divide the beat by two (eighth notes)
Count 1 and 2 and 3 and 4 and. Now you have eight slots in a bar of four. Instead of playing E on beat 2, place it on the and after 2. Place the next notes on offbeats too, and leave a gap before the phrase returns. The notes are the same, but the melody now has space, feels less monotonous and becomes far more singable.
Divide the beat by three (triplets)
Count 1 and a 2 and a 3 and a 4 and a. Four beats times three gives twelve slots per bar, so you have even more places to put each note.
Straight or swing
Decide whether the melody is straight or swung. Playing the same phrase both ways completely changes its texture. Jason Zac calls these choices time feels: always have a beat division in your head, whether straight or swung.
Step 3: Change a note or two
Poems rarely repeat a line word for word, because that becomes boring. Do the same with your A lines: keep the shape, but change one note in each. For example, one A line can reach up to the fifth of the scale (A in D major), and a later line can go higher still. Changing two notes can make two lines feel like a question and answer.
Let the piano act as a second composer. Explore, and stay open to ideas the instrument gives you.
Step 4: Add harmony with bass roots
Harmony moves the melody through changing moods. Under the four lines, use these bass roots:
- D – the tonic (I)
- B – the vi chord (B minor), which creates motion
- G – the IV chord, which sounds a bit unstable and wants to move
- A – the V chord, leading back home
- Back to D (I)
Octaves in the bass give a richer sound.
Stack the fifth
Think of the piano as a choir under your fingers. Add the fifth above each root, for example D with A, for a full sound. For more finger independence, hold the root and fifth while the right hand plays the remaining melody notes. This strengthens the downbeat.
Colour the ending
Because the melody simply holds its last note, you have room to colour the ending, for example with a suspended sound and an inner voice stepping down A, G, F# instead of staying static.
How to practise
- Play the four-note idea in AAB form first, with no chords.
- Try it in quarter notes, then eighth-note offbeats, then triplets, straight and swung.
- Imagine a ghost drummer beside you to keep time and keep the melody grooving.
- Add bass roots D, B, G, A, then octaves, then fifths.
- Explore freely; this lesson deliberately leaves room for your own ideas.
Questions about this lesson
How do I turn a simple tune into a full melody?
Repeat your idea in an AAB pattern, give it rhythm by dividing the beat and using offbeats, vary a note in the repeats, then add bass roots and fifths underneath. Each layer makes the original idea catchier without throwing it away.
Why does my melody sound boring when I play it on the beat?
Playing only on beats 1 to 4 leaves no extra slots, so the melody feels slow and flat. Dividing the beat into eighth notes or triplets and placing notes on offbeats adds space and groove.
What chords go with a melody in D major?
This lesson uses bass roots D, B, G and A, which are I, vi, IV and V in D major, then returns to D. You can enrich them with octaves in the bass and by adding the fifth above each root.
Should the last line of my melody be more complex or simpler?
Either works. In this lesson the B line is simpler than the A lines, which breaks the monotony and brings the melody to rest like punctuation at the end of a sentence.
Practise it
- Swing GardenWork with straight and swung rhythm in an interactive teaching workspace.
- Melodic CurvesSketch a melodic contour, choose a scale and hear the line take shape.
- Piano classes at Nathaniel School of MusicLive online or in Bangalore, with a teacher.
- All free music apps40 practice tools for harmony, rhythm, ear training and more.
Related lessons
- 10 Types of Cadences Explained: Theory, Ear Training and PianoA cadence is a short chord progression of two to four chords, such as V–I (authentic), IV–I (plagal), V–vi (deceptive) or i–bVII–bVI–V (Andalusian), used to end, extend or redirect a musical phrase.
- 12 Bar Blues Piano for Beginners (Sing and Play Along)The 12 bar blues uses only the I, IV and V major chords (C, F and G in the key of C), arranged in three four-bar lines: I-I-I-I, IV-IV-I-I and V-IV-I-I, with optional IV in bar 2 and a V turnaround in the final bar.
- The 12-Bar Blues Bassline Every Piano Left Hand Needs to LearnThe classic 12-bar blues left-hand bassline plays the 1, 3, 5 and 6 of each chord's own root (Bb D F G over Bb7), then grows into a two-bar 1-3-5-6-b7-6-5-3 line, while the right hand comps dominant seventh chords in a swung Charleston rhythm.
- 15 of the Most Popular Chord Progressions on Piano (Major, Minor and Modal)Popular piano chord progressions in the key of F include I–vi–IV–V (F Dm Bb C), I–V–vi–IV and its rotations, ii–V–I, the minor i–bVII–v–bVI, the Andalusian i–bVII–bVI–V, the Dorian i–bIII–bVII–IV, the Mixolydian bVII–IV–I, the 12-bar blues, the Canon progression and the line cliché.