How to Write a
Beautiful Melody.
There are 7 elements that create a beautiful melody.
In this PDF tutorial you'll learn what they are, and how to use them!
Free PDF Tutorial
includes multitrack MIDI file
If the link above does not work, paste this into your browser:
https://hackmusictheory.com/album/2554562/beautiful-melody
Intro.
When I recently heard “Ray Of Solar” by Swedish House Mafia on Spotify’s “New Music Friday” playlist, the song’s beauty jumped out at me from amongst the almost 150 tracks that all seem to be sounding more and more alike each week.
And for the record, while I’ve heard the name Swedish House Mafia, I don’t think I’d ever listened to them before. In fact, I don’t even know if they’re from Sweden. I mean, you’d think the electronic duo Boards of Canada are from Canada, right? Wrong. They’re from Scotland! What?! Yep, it’s true. But I digress…
So, despite not being a Swedish House Mafia fan, the beauty of this song is undeniable. And as a result, we’ve ended up in the rare situation of making two tutorials on the same song.
In last week’s tutorial How to Write Beautiful Arpeggios (Free PDF) we taught our 6-step method for making a beautiful chord progression like you hear in “Ray Of Solar”. In this tutorial, inspired by the same section, you’ll learn our 7-step method for writing a beautiful melody.
And no, you don’t need to have done the previous tutorial, this one is completely independent. If you have, though, then you can write a melody for the beautiful arpeggios you made from that tutorial.
Alright, read on to learn the music theory hacks that create this undeniable beauty, and how you can use them to write your own beautiful melody. But first… Tea!
Step 1. Chords
Before we get to the melody, we need to talk chords. All beautiful melodies either have chords accompanying them, or if it’s a solo melody, the melody itself will imply chords. For more on implied chords, read MELODIC BASS DROP (PDF).
So let’s start by choosing some chords for a progression. If you did the other Swedish House Mafia tutorial mentioned in the intro, then load up that file in your DAW. You can write this melody over those chords. If you didn’t do that tutorial though, no problem, you can just write an eight-bar chord progression now.
“Ray Of Solar” actually has a sixteen-bar chord progression, which is super rare. Most songs nowadays don’t even have an eight-bar progression! Four-bars is standard. If you’re feeling adventurous, you can write a sixteen-bar progression, but there’s no need for that, as eight bars is plenty for writing a beautiful melody.
So, set up eight bars of 4|4 with a 1/4 note grid, and your tempo at 135 BPM. Swedish House Mafia is in the key of F♯ minor, but we’ll use A minor instead, as it keep things simple because it’s just all the white notes. Here are the chords:
You can use whichever chords you want, but start on the root chord (Am), as that will anchor your progression into the key. Here are the chords we chose:
Am → Cmaj → Dm → Em
Dm → Cmaj → Dm → Em
If you’re making a new progression, then four chords is all you need. We have eight chords because it’s our sixteen-bar progression from the previous Swedish House Mafia tutorial. We’ll only use the first half for now, though, then as a bonus (Step 8), we’ll show you what to do with your eight-bar melody if you’ve also got a sixteen-bar progression.
Right, so once you’ve chosen your chords, draw the root note of each chord on the grid. If you have four chords, start by drawing each root for two bars. But, it will sound better if they’re not all the same length. So keep a couple roots two bars long, but then make one root shorter (i.e. one and a half bars), and one root longer (i.e. two and a half bars).
If you’re writing a new progression, duplicate this track and draw in the full chords. Load up a warm pad sound on that other track with the full chords. That will make for a lovely accompaniment to your melody. Then on your melody track, mute the root notes, as they’re only there for reference while we write the melody.
Root note of each chord in our eight-bar progression (muted), for reference
Step 2. Rhythm
Alright, it’s melody time! Well, kinda. You’re gonna start by first writing your melody’s rhythm. You see, one way to think of a melody is that it’s a rhythm with pitches assigned. By approaching it this way and starting with the rhythm, you’re tapping into a primitive musical element. That’s a powerful way to express yourself.
So, spend some time playing around with a two-bar rhythm. The rhythm Swedish House Mafia uses consists almost exclusively of a hypnotic 1/4 note pulse. However, they use one 1/2 note in their two-bar rhythm. This creates a beautiful balance between regularity and surprise, as you’re not expecting that 1/2 note.
We changed the rhythm, but used the same note values. Try it too, as there are actually so many different ways to arrange these six 1/4 notes and one 1/2 note. And just use the root note (A) to write your rhythm on.
Two-bar rhythm consisting of six 1/4 notes and one 1/2 note (highlighted)
Once you’ve written your two-bar rhythm, copy and paste it into bars three and four. One of the many clever hacks used in the “Ray Of Solar” vocal melody, is repeating a two-bar rhythm but changing the assigned pitches. In other words, the melody repeats every four bars, but its rhythm actually repeats every two bars.
Okay, so now that you’ve got your four-bar rhythm, you can start assigning pitches.
Two-bar rhythm copied and pasted (highlighted) to create four-bar rhythm
Step 3. Motif
A motif is a short musical idea that you repeat in order to give your music structure, which in turn makes it more memorable. Swedish House Mafia uses a beautiful ascending 3rds motif. In other words, they start on the root (A), then go up a 3rd (to C). They then repeat this ascending 3rd motif from B up to D. And again, from C up to E.
So in this step, you’re gonna spend some time creating a motif of about four notes, which you’ll then repeat later in your melody. As always, it’s your music, so you can do whatever you want. The only guideline here is that it should be catchy. And funnily enough, it’s actually far easier to know what isn’t catchy! For example, playing four notes in a row ascending through the scale (A, B, C, D) is definitely not catchy. It sounds like someone practising scales, not playing a melody.
Making motifs is a really fun process, so play around with a bunch of different ideas and see what ends up sticking in your head. If it doesn’t stick, keep playing.
For our motif, we started on the emotional ♭3 (C), then went to the notes on either side of it - the 2 (B) and the 4 (D). Then to end our motif, we returned to the note we started on, the ♭3 (C).
Four-note motif (highlighted)
Once you’ve written your motif, you can repeat it later in your melody on different notes. But before you do that, you need to consider your melody’s range.
Step 4. Range
The range of a melody is the distance between its lowest note and its highest note. The vocal melody in “Ray Of Solar” has a range of way over an octave. In fact, it’s almost an octave and a half. That’s HUGE! Sadly, nowadays there aren’t many vocal melodies that even have a range of one octave. The huge range that Swedish House Mafia uses is probably one of the first things people notice (consciously or subconsciously) about their melody. It’s definitely a standout feature, so let’s use it.
You don’t need to use a melodic range as big as “Ray Of Solar” though, i.e. 17 semitones. Our range ended up being 15 semitones, but anything over an octave is plenty big. Especially if you or a friend is planning on singing this. A melody with a 17-semitone range is difficult to sing, so it’s a good way to lose your singer friends!
When you repeat your motif later in the melody, you want to do it somewhere else in your range. In other words, if your original motif is low, then go high with the repeat. If the original is high, then go low with the repeat. And if the original is in the middle, then you can go higher or lower with the repeat. But then be sure to reach in the opposite direction elsewhere, in order to extend your melody’s range.
Four-note motif repeated on different notes later in melody (highlighted)
Regarding those notes (on A) in your rhythm that you haven’t yet assigned pitches. We recommend muting them in this step, because they’ll interfere with listening to your two motifs. There are six of these notes (on A) in our melody, which we muted. This also helps with listening to the current range of your melody. But, don’t worry if it’s not quite big enough yet (i.e. an octave or more), as you can extend the range with those remaining notes, which we’ll assign pitches to next.
Current range of our melody is just over an octave, from B2 (highlighted) up to C4 (highlighted)
Please note that in the MIDI screenshot directly above, we muted the six notes (on A) in our melody that we haven’t assigned pitches to yet.
Six notes of our melody (highlighted) still need to be moved into place
Step 5. Contour
Whatever number of notes you have remaining that still need to be assigned pitches (probably about six), it’s essential to use them mindfully. Because, you need to create a beautiful melodic contour, and it’s all up to these remaining notes.
As you can see from our melody above, there’s a massive jump in between the two motifs. Having a big interval in your melody is great, because a well-written melodic leap sounds epic! But, small intervals are essential in creating a smooth melodic contour that flows. Without a smooth contour, your melody will sound like a cat walked across the keyboard while you were recording. Don’t get me wrong, cats are beautiful, but their melodies aren’t.
Take your time with this step. It’s gonna feel like a puzzle, as you’ve only got a few notes left, but they’re going to make or break your melody. Remember, these notes actually have two jobs. Firstly, they need to create a flowing contour. And secondly, they need to extend your melody’s range (unless it was already big enough in the last step). When you get these notes locked into position, though, you’ll have that amazing feeling we get when popping the last piece of a jigsaw puzzle into place.
Six remaining notes assigned pitches (highlighted) to create smooth contour and extend range
Step 6. Repeat
Congrats! The hard work is done. You’ve got a beautiful four-bar melody. Now comes the easy part. Simply copy and paste your melody into bars five to eight.
Four-bar melody copied and pasted (highlighted) into bars five to eight
Now go ahead and hit play, but don’t make your second cup of tea yet, because it’s slightly too early to be sitting back and enjoying the fruits of your labour. That’s because there’s a very good chance one (or more) of the notes in your melody will clash with the different chords in bars five through eight.
And when we say “clash” here, we’re not talking like Stravinsky’s “Rite Of Spring”, which was so dissonant it caused a riot at its premiere in 1913. No. All the notes you’re using are from the key of A minor, so it won’t clash badly, but it may be a subtle clash. But, that’s enough to ruin the beauty you worked so hard to create.
So, listen through to your melody in bars five to eight, and check if any notes aren’t sitting quite right over the different chords. Highlight those notes, then move them up or down until the beauty is restored. This little variation in the melody creates even more beauty, as it’s not repetitive now.
For the record, Swedish House Mafia don’t do this, as they don’t have any clashes. As a result, their melody is copied and pasted with no variations.
In our melody, the second last note in bar eight (C) didn’t sound great over the Em chord. That’s because C is the ♭6 of Em, so it clashes with the 5 (B), as they’re a semitone apart.
This was an easy fix, though. We just moved that C one semitone down to B, and the beauty was back, with interest, thanks to this variation!
C moved one semitone down to B (highlighted), to fix clash
Step 7. Phrasing
Now we’ve just gotta put the finishing touches on, then you’re ready for your second cup of tea and the final playthrough. So, change your grid to 1/8 notes, and let’s give your melody some room to breathe, literally. This is called phrasing.
A lot of producers think phrasing is only for singers, as they need rests in the melody so they can breathe. And while it’s true that a synth (or cello, piano, guitar, etc.) doesn’t need to breathe, instrumental melodies still benefit from phrasing.
So, to add phrasing to your melody, sing along with it, and where you naturally take a breath, create a rest. You do this by simply shortening the note (by an 1/8 note). We did this on our longer notes, and that may be a good place for you, too. Because, shortening a 1/2 note still leaves a longer note, but shortening a 1/4 note leaves a short staccato-like note, which sounds abrupt. However, that may sound cool, depending on your melody. So, this is entirely between you and your melody.
The most important thing with phrasing is to make it sound natural, i.e. it should make your melody sound like it’s being sung, even if it’s being played on a synth.
Three of our four longer notes shortened to create places to breathe (highlighted), i.e. phrasing
Step 8 (Bonus). Sixteen Bars
Lastly, if you’re working over a sixteen-bar chord progression (like we are), then copy and paste your eight-bar melody into bars nine to sixteen.
Now, repeat the hack from Step 6, where you check for clashes over the different chords. And if you have any clashes, highlight those notes, then move them up or down to notes that work better over those chords.
We didn’t have any clashes in our melody against the different chords in bars nine to sixteen. So for our example, this step consisted of an easy copy and paste job.
Right, now you can put the kettle on, as your creation is ready for its debut. Then sit back, sip slowly, and savour every moment of your beautiful melody.
Eight-bar melody copied and pasted (highlighted) over second half of sixteen-bar chord progression
Make Music You LOVE.
I know you want to be a confident producer who finishes songs, and loves the results. In order to become a confident producer, though, you need decades of knowledge and experience. To gain that knowledge, you need a good teacher. To gain that experience, you need decades of practice. That’s overwhelming!
I understand that searching for a good teacher is frustrating. Most courses are taught by YouTubers who are not qualified in music, and are not qualified teachers either. The few who are qualified in both, have no industry experience. I feel your pain. Truly. Most of my music teachers were bad. That’s why I studied music and education in order to become a lecturer, and why I created Hack Music Theory.
Also, over my 30+ years of composing, I developed a unique method called Song-Whispering, which I’ve used to make music with multiplatinum Grammy winners. In my one-of-a-kind online apprenticeship, you’ll learn my method and turbocharge your music with my decades of knowledge and experience.
Enroll Now and stop wasting years of your life learning from bad teachers and trying to get better through trial-and-error. Transform into the confident producer you would be in 10+ years now, and start loving your music!
Ray Harmony
Multi award-winning college lecturer, teaching since 1995
“Song-Whispering may be the single greatest concept ever!”
–Glynne Owen (Japan)
“I followed their YouTube for a while before taking their course. I wish I'd taken it sooner!”
–Sagar Saluja (India)
“I wrote the first song in my life that I actually like!”
–Anastasia Lucas (USA)
Free PDF Tutorial
Lastly, are you new to music theory? Or are you experienced, but you want a refresher? Then download our FREE BOOK (link opens in new tab). It only takes 30 minutes to read, then you’ll have a solid theory foundation that you can instantly apply to your songwriting and producing. Enjoy!
If the FREE BOOK link doesn't work, just visit our BOOKS page:
https://hackmusictheory.com/books