How to Figure Out a Melody by Ear, on Any Instrument
To figure out a melody by ear, sing it first, then find the note that sounds like home and the note the melody starts on. Tap the rhythm so you know how many notes there are. Then work one short phrase at a time, asking two questions of every note: did it go up, down or stay the same, and was it a step or a leap? A step is the next note of the scale, so there is only one candidate in each direction. A leap is where you need to hear the size of the interval. Check what you found by playing along with the recording. None of this depends on the instrument: it works the same on piano, guitar, sax or your own voice.
Can you sing it? Start there
If you cannot hum a phrase from memory, you cannot find it on an instrument. You would be searching for something you do not yet have. Listen to the phrase a few times, then hum it without the recording. Where your humming goes vague, the phrase is not in your head yet.
Find home, then the first note
Most melodies have one note that sounds like rest, where the tune could stop and feel finished. That note is the tonic, it names the key, and melodies very often end on it. Hum it, play notes on your instrument until one matches, and call it 1. Every other note will be measured from it.
The first note is often not home. “Happy Birthday” starts on the 5th note of the scale, below the tonic: its first phrase climbs to the tonic on “to” and dips just under it on “you”. Find the first note the same way, by humming and matching. Now you have two fixed points.
Get the rhythm before the notes
Tap or clap the rhythm of a phrase before you hunt for any pitch. The rhythm tells you how many notes there are, which ones are long, and where a note repeats. A repeated note is free: you find it once. Pitch and rhythm together are two problems at once; separated, each one is small.
Work one phrase at a time
Take a phrase you can sing in one breath, usually one line of the lyrics. Find every note, play it back cleanly, then move on. A long section tends to blur in the middle.
The two questions for every note
Which way did it go? Up, down, or the same note again. The direction alone rules out every note on the other side.
How far: a step or a leap? A step moves to the next note of the scale, one or two semitones away. A leap skips at least one scale note: a third, a fourth, a fifth or more. Steps sound like walking; leaps sound like a jump.
Together, the two answers turn a guess into a short list. If the note went up by a step, there is one candidate: the next scale note above. You do not have to decide whether that step is one semitone or two, because the key decides it. In a major key, the steps from the 3rd note to the 4th and from the 7th to the 1st are semitones, and every other step is a whole tone.
Why do melodies move mostly by step?
The first phrases of “Ode to Joy”, the theme from Beethoven’s Ninth Symphony, move only by step and by repeated notes, without a single leap. That is extreme, but the tendency is general. Studies that count the intervals in large collections of melodies from many cultures keep finding that small intervals are far more common than large ones. Music psychologists call this pitch proximity.
There are good reasons for it. Melodies grew up being sung, and a voice finds a nearby note more accurately than a distant one. Notes close in pitch also hold together in the ear as one line; when a melody jumps far and fast, listeners can start to hear two lines instead of one.
Leaps have a habit of their own: after a large leap, a melody often turns around, frequently by step. Part of the reason is range. A big leap up lands near the top of where the tune lives, and most of the room left is below. In the third line of “Happy Birthday”, the jump up an octave is followed by a descent, first in thirds, then by step.
For you, this means the best first guess for any note is the scale note next door. Save your effort for the notes that clearly jumped.
How do you tell how big a leap is?
Count it. Sing up or down the scale from the first note to the second, counting as you go. If you sing 1, 2, 3, 4, 5 and land on the target, the leap is a fifth. It is slow, and it always works.
Hear it. With practice, each leap has a sound of its own: a fifth is open and wide, an octave is the same note higher. Recognising the size directly is what interval training builds, and it is what eventually makes counting unnecessary.
“Twinkle Twinkle Little Star” shows both kinds of motion in its first two lines. It leaps up a fifth between the two “twinkle”s, steps up on “little”, then steps back and walks down the scale one note at a time, all the way home on “are”.
Hear the melody in numbers
Once you know where home is, number the notes of the scale from 1 to 7, with 1 as the tonic. A melody then becomes a row of numbers that does not depend on the key.
“Twinkle Twinkle Little Star” is 1 1 5 5 6 6 5, then 4 4 3 3 2 2 1. In C major that is C C G G A A G, F F E E D D C. In G major the same numbers give G G D D E E D, C C B B A A G. The numbers stayed and the notes moved. Work out the numbers once and you can play the tune in any key, on any instrument.
Movable do is the same idea with syllables: Do is always the tonic of the current key, so the tune is Do Do Sol Sol La La Sol, Fa Fa Mi Mi Re Re Do. Syllables are easier to sing than numbers. If you name notes in fixed do, where Do always means C, numbers avoid the clash between the two systems.
In a minor key the numbers still run from 1 to 7, and the 3rd and 6th sit a semitone lower than in major. The 7th can go either way: minor melodies use the lower one or the raised one, whichever fits the moment.
What if a note is not in the scale, or the run is too fast?
When the scale note next door sounds wrong, try the note a semitone away from it. Melodies borrow notes from outside the key now and then, and the scale guess is what makes them stand out.
When a run is too fast to sing, slow it down: many audio players and practice apps can play a recording more slowly without changing its pitch. Fast runs very often follow the scale, so find the first and last notes and try filling the space between them by step.
Check by playing along
Play the finished phrase along with the recording. A note that clashes is usually off by a step, in the wrong octave, or outside the key. If everything sounds slightly off rather than plainly wrong, the recording may not be tuned to standard pitch, or may have been sped up or slowed down. Tune your instrument to the recording.
How to get better at it
Two skills carry this method, and both can be trained on their own. The first is singing a note back: if you cannot sing a phrase, you cannot find it, so the lesson on singing back a note comes first, even if you never plan to sing in public. The second is hearing the distance between two notes, in both directions. The lesson on interval direction and size explains why a leap down is harder to hear than the same leap up. The intervals by ear exercise plays two notes and asks how far apart they were: the “how far?” question in its smallest form. And the tap the rhythm exercise trains the step that comes before any pitch.