Find part two of this article here
WARNING: This is a long post. But if you can get through it, you will know a lot of important basics about music theory and production.

As some of you know, I’ve been having a blast with my foray into gamedev. I had never programmed a day in my life before October, and now I’m up to making an iPhone Pong clone so I’m pretty excited about that! More to come in future blog posts. Anyways, I’ve been careening through Beginner Gamedev articles like crazy and I feel it’s time to pay it forward to the gamedev community by providing some music lessons.
While obviously I’d prefer every game developer out there to come to me for music, I think some people want to make their own game soundtracks, and would if they only knew how. Just like any field of study, music can’t be taught in a day, but I wanted to lay down some basics to get people started. Here’s what I’m going to cover in this post:
- Scales, and why you need to understand them
- Chords, and how to form them
- Chord progressions, and how to make them
- Melodies, and how to write them
- Extra effects and plugins that fill out your sound
I’m going to be using GarageBand in this post, so feel free to follow along. If you don’t have a Mac, the theory aspects are still relevant, and the software-related stuff can be easily transferred to another DAW (Digital Audio Workstation).
Scales, and why you need to understand them
Most beginners really hate scales because they’re boring and don’t seem to do anything. The truth is, scales are the backbone of (almost) every single piece of music. There are two main types of scales (and hundreds of less common ones, but I’m not getting into that): major and minor. Besides the type of scale, there are also keys. There are 12 keys in all, one for each note. Every single concept in this post can be applied to every single key, but to keep things from getting too complicated, I’m only going to talk about ‘C’ major today. The key is ‘C’; the scale type is ‘major’.
Here is what ‘C’ major looks like in musical notation (up and down):
![]()
Here is what a one-octave ‘C’ major scale looks like on a piano keyboard (notes in red):

Here is what a ‘C’ major scale sounds like:
Now that I’ve shown you the ‘C’ major scale, let’s dissect it. While I am tempted to use musical notation, I will try to avoid it as much as possible because most beginners don’t know how to read it yet. Instead, I will use the piano keyboard. Pro Tip: in GarageBand, if you go to Window->Keyboard, a virtual keyboard will pop up, allowing you to follow along. Or, you can go to Window->Musical Typing instead, which converts your computer keyboard into a piano keyboard. Pretty cool!
Every note in a scale has what is called a scale degree. A scale degree is just a number associated with the note. Here is the scale again, this time with numbers attached:

As you can see, the system is extremely simple. The scale starts at 1 and continues through 8. The last note can be called 8 because it’s the eighth note in the scale, but it’s actually easier to just call it 1 because it’s the same note (just higher). So let’s change it to this:

Before you move on, make sure to soak up the basics of scales. Everything else that follows will build upon this knowledge.
Chords, and how to form them
The most basic type of chord is called a triad. This term is easy to remember because of the “tri” prefix. It is literally a chord with three notes. Chords are formed off of scale degrees. When a chord is formed off a ‘C,’ for example, it is called a “1 chord.” A ‘D’ chord would be called a “2 chord,” and so on. To form a triad on a note, you just skip every other note. Here is a ‘C’ major chord in picture form (the green dots):

As you can see, the first note is ‘C’, we skip the ‘D’, next note is ‘E’, skip the ‘F’, and the last note is ‘G’. To solidify this concept, here are two more triads (F major [blue] and G major [purple]):

If you are in the key of ‘C’, you can form a triad off of any of the 7 different notes in the scale. Whatever note you form the triad off of is called the root. For example, ‘D’ is the root of a ‘D’ minor chord and ‘A’ is the root of an ‘A’ minor chord (pretty simple, eh?).
Remember how we said a chord is named after the scale degree it is formed on? Well, it would get confusing if you called the note ‘C’ “1″ and the chord ‘C’ “1″. Thus, we use roman numerals for chords. Also, just like there are major and minor scales, there are major and minor chords. Another benefit of using roman numerals is that by using upper and lower case numerals, we can discern between major and minor chords (major chords are upper case, minor chords are lower case:

As you can see in the picture, here are the chords based on the roots in the C scale:
- I – C major
- ii – D minor
- iii – E minor
- IV – F major
- V – G major
- vi – A minor
- (vii° – B diminished)
For now, just ignore the vii° chord. It’s a more complex concept and it’s also not used nearly as often as the rest. I promise you it won’t be missed. For the rest of this post, I’m just going to pretend that chord doesn’t exist to make things simpler.
Here is what each of the chords – ‘C’ major through ‘A’ minor – sound like:
There are reasons that some of the chords are major and some are minor, but for now you should just memorize the pattern (major, minor, minor, major, major, minor).
Chord progressions, and how to make them
While some songs only have one chord in them, most have at least three. The great thing about understanding scales and chords is that once you know which chords fit within a scale, it just works. For example, I’m going to shuffle up the order of the chords in ‘C’ major. Here’s a randomized list:
- E minor
- F major
- D minor
- C major
- G major
- A minor
Here is what this progression sounds like (with four beats per chord):
As you can see, even with a randomized list it sounds pretty awesome! Having said that though, putting a little thought into the progression can really make it pop. Here are some common rules and tips that help make a song sound good (like any rule, these are made to be broken, but if you are new to music, you should try to stick to them):
- It’s generally good to start and end on either a “I” or a “vi” chord (in this case, either C major or A minor)
- The “I” “IV” and “V” chords are extremely common
- The “I” chord leads well to the “IV” chord
- The “IV” chord leads well to the “I” or the “V” chord
- The “V” chord leads very well to the “I” chord
It’s really hard to think of some core rules for chord progressions, because they are actually very complex in nature if you really analyze them. This list probably isn’t as good as it could be, but it should get you started.
Side note: the super-famous totally-overused but always awesome-sounding 4-chord progression (there are a few NSFW words in that video). The progression is “I V vi IV” and it’s used in thousands of songs – Journey’s “Don’t Stop Believing,” The Beatles’ “Let It Be,” and Jason Mraz’s “I’m Yours” to name three awesome ones. In ‘C’, the progression would be: ‘C’, ‘G’, ‘Am’, ‘F’. By the way, here’s a short-hand way to write major and minor chords – for major chords, just write the letter (e.g. ‘G’) and for minor chords, write the letter plus a lower case “m” (e.g. ‘Em’).
Here’s a chord progression that I just wrote using some of the rules and tips I mentioned, and then just throwing some other chords in there:
I – (C)
ii – (Dm)
IV – (F)
I – (C)
vi – (Am)
V – (G)
I – (C)
I – (C)
And here is what the progression sounds like:
Here’s a picture of the progression in GarageBand’s MIDI editor window:

Here’s the exact same progression after moving some of the MIDI notes around, adding some doubled notes, and changing the rhythms so the triads aren’t so blocky:
Here’re the MIDI notes after the edits:

Melodies, and how to write them
While melodies are not a necessity in music, they often help tie everything together and keep it from getting boring. To write a simple melody in ‘C’, all you have to do is use the notes in the scale! There are certainly notes that don’t sound as good as others, but for the most part, any note in the ‘C’ scale will fit with any chord in the ‘C’ scale.
Here are some tips for making a good melody:
- Using notes that are also in the current chord usually sounds great. For example, an ‘A minor’ chord includes three notes: A, C, and E. If the melody includes any of those notes while the A minor chord is sounding, it will probably work well.
- Keep the melody within the beat of the song. Rhythm can be pretty complex, and I’m not going to talk about it much here. If you stick to the gridlines of the MIDI window, GarageBand keep the beat steady.
- Use repetition. Sometimes a stupid little ditty can sound great if you just play it twice. Repeating melodic phrases also helps the listener remember it.
- Use variation. While repetition is important, variation is as well. The best is to combine the two by repeating melodic phrases but varying them slightly every time.
- The great thing about MIDI is that if you don’t like the melody you write or play, it’s EXTREMELY easy to change.
Here is a melody on top of the chord progression from the previous section (every single note in the melody is part of the ‘C’ scale):
Extra effects and plugins that fill out your sound
The final thing I want to talk about is how to make your song go from a simple chord progression and melody to something that sounds a bit more professional. Here are three things you absolutely need to be aware of:
- Reverb
- Delay/Echo
- Automation
Okay I cheated a bit. Automation isn’t an effect, but it’s a way to have complete control over your sound. Let’s start with reverb though. Reverb just makes the song sound like it’s in an actual space with reflective walls. The bigger the virtual space, the more the reverb. In GarageBand, click the “i” in the bottom right, then go to the “edit” tab. There, you can add effects. Here’s a picture of the effects pane:

After adding some reverb onto the instruments, this is what we have:
Before we move on, I need to change one other thing that’s been bugging me about this song. Since I added all the notes in by hand on the computer, there is no velocity information (how hard I hit the notes). It sounds very robotic because every single note is at the exact same loudness. To change the velocity of notes, double click a MIDI region (or select a region and click the scissors/edit button in the bottom left). In that section on the left is a velocity slider. Just click a note then drag the slider:

Here it is after some velocity changes. Sounds a little more human:
Next, let’s add some delay. Delay is basically just echo. In fact, in GarageBand they just call it echo. It’s feeding back the original sound and replaying it as many times as you like. Here it is after some echo is added to the melody line:
Finally, we come to automation. Automation gives you a way to, well, automate things. You can automate pretty much anything. A very common thing to automate is volume. Instead of having to drag the volume slider to fade out a song, you can just set the automation line to do it for you. To get to the automation of a track, click the arrow/triangle button at the beginning of the track:
![]()
When the automation section pops up, you first want to select what you are automating. By default you can select either volume or pan, but if you click “Add Automation…” you can automate any effects or plugins you add to the track (if you want to slowly fade in reverb, for example). Once you select what you’re automating, you can click anywhere on the automation line to add a dot. This is what a fade-in looks like:

One cool thing you can do with automation is to automate the tempo of the song. I recorded this song at a steady beat but if I open up the Master Track by going to Track->Show Master Track and select the “Master Tempo” to automate, I can control it however I want (the Master Track is the one that affects everything else). Here is the song with an automated ritard (short for ritardando – “gradually slower”) at the end (unfortunately the audio got a little distorted when I slowed down the tempo):
In conclusion
This is a ton of music theory in one post. It covers a lot so don’t feel overwhelmed if some of it is hard to grasp. However, this is just barely scratching the surface of the tip of the iceberg that is music theory. There are so many little details, rules, and aspects of it. But that’s why I love it. I hope that this gives some people the motivation to learn more on their own. Feel free to ask me anything as well. To finish this epically long post, and to reward those of you who are still reading (if any), I have added some extra instrumentation and effects to our little tutorial song:
Great post Whitaker, really well put together and covers a lot of ground! Look forward to seeing more of this stuff
This is so noteworthy…get it!?! Thank you SO much for this blog. It helps demystify the basics of music. You are an awesome instructor. Maybe after studying this, I’ll be able to play piano like Oscar Peterson.
I absolutely love the piano and really, really wish I “understood” it more than I do beyond just button mashing. Great write up and something worth re-reading over and over again.
Thanks
Very nice. Going to RT
Any favorite sound-generation libraries so far, or pre-generate and pull in tracks?
Thanks for this! =)
excellent. more, more more!
I think a great way to develop understanding about music is to really take apart some songs that you love. Try to understand “what makes them tick” so to speak.
So I don’t mean just learning a song to cover it, I mean really studying its composition.
What I want to know is what chords/chord progressions trigger what emotions, and why.
Very nice. It’s so cool that people like you spend the time to be generous with your knowledge.
While I was aware of exactly how difficult getting music right in a game is I never truly comprehended how much work is involved into making something auditorily soothing. Definitely making me rethink just throwing audio in and trying to match the mood of the game / moment.
Where should I go from here? I am a complete noob at music.
Thanks for the great post!
A friend of mine created some games to help with music training. While you do music for games, he does games for music.
They are flash-based, so you can play them in your browser. They are a fun way to improve your music skills!
http://trainer.thetamusic.com/
This is a really, really good post, it totally demystifies music theory and makes it seem super accessible. You’ve inspired me to have a go on garage band myself!
Great stuff! How about doing one on rhythms?
thx… this is what i’m looking for.. veri nice
Great write-up! I wrote something similar once, though I haven’t finished translating it yet. But perhaps it may make a nice ‘complimentary’ tutorial to yours, as it is also focussed on the C scale, chords and melodies? So here it is:
http://wauter.artopia.be/reasontutorial/EN_notenenakkoorden.html
It’s also ugly, full of broken links, ad-ridden and insanely formatted, but it’s the explanation that counts
What do you think?
This is an awesome post. I’d read more if you wrote more. I usually do not like reading the theory of anything, but this was informative and easy to follow. Do moar!
Thanks a lot for the writeup! I’m trying to cobble together some music for a completed game, and it’s by far been the most frustrating part of the development process. Learning some basics is very motivating… at least I have a place to start now =]
pretty entertaining!
With a fundamental background of keys I was able to create a song key finder, but with this additional info I’m going to be taking it to the next level. Thanks so much!
Thanks for the post — marked for future ref. Only sin is use of the word “pop”. So I grant you an indulgence and grant myself one for saying “tasty”.
One thing that you could add to your excellent primer is intervals: tonic, minor second, major second, minor third, , major third, …, major seventh, …, all the way up to major thirteenth.
After that, a major chord is composed of the tonic, major third, fifth. A minor chord is composed of the tonic, minor third, fifth. A diminished chord is just a minor chord with a minor fifth.
It takes the mystery out of the names of chords (including jazzistic dissonant chords) and relates the reader to songbooks with cyphers.
By the way, I am almost illiterate in musical theory, and maybe it shows. I learned to read guitar cyphers using this “logic”, and it did wonders for me.
i dont understand :
why a scale “A B C D E” generates a chord progression like “A Bm C D Em”,
instead of an “A B C D E” progression or “Am Bm Cm Dm Em” (every chord should be minor or major,no?)
Pretty well explained! thanks a lot! When you starting to understand the C scale, a lot of music starts to sound a little more simple than before. thanks again from Chile!
From a musician and composer: This tutorial has many holes and oversimplifies a very intricate system that deserves more time and dedication. Firstly, you need to explain the logic behind the structure of scales, triads, etc. Discussion on semitones would be helpful. vii diminished chords are extremely common in Western music. It’s not fair of you to dismiss such a spicy chord. Melody writing Involves more than a few triads in a small, inflexible progression. Inversions help too.
All those interested in really learning and exploring the fundamentals of music, please visit: http://www.musictheory.net. You can also check Amazon for “Alfred’s Essentials of Music Theory: A Complete Self-Study Course for All Musicians,” a book I use in teaching.
Great post. You have covered a lot of stuff. I am inspired to try something of my own. Thanks
@1331 Sweet! These might come in handy someday. Especially since I’m a teacher.
@Jeff My next one is going to be on rhythms! Check back in the next few weeks.
@wauter Looks really good and very similar! Nice going.
@I M Campos Thanks for that detailed response. I definitely plan on doing a post on specific intervals and how to read chord charts in the future. You’re totally right that it demystifies things. The goal of this was to really keep things simple and allow people to very quickly make a song – at the expense of not knowing too much about what they’re doing.
@doe It has to do with the intervals of notes in the chord. I will probably get to this in a future tutorial, but here’s a quick explanation. In the key of “C”, A B C D E generates Am, Bm(b5), C, Dm, Em because all the chords share the notes of the scale. Because the notes must remain in the scale and are not dependent on the actual chords, the intervals sometimes change between them. For example, the major chords are constructed with a “major 3rd” on the bottom and a “minor 3rd” on top. Thus, every time you build a chord off of a note in a scale and that results in a major-3rd/minor-3rd build up, you will have a major chord. I know this is very confusing, but it’s tough to explain quickly.
@ScarlettLime I’m well aware that this has holes and oversimplifies things. But how do you make any intro post without oversimplifying things? My goal of this was a practical one – get people to play and record a basic song quickly (without any prior knowledge). I’m well aware that there are awesome resources like musictheory.net, which help people who want a deeper understanding. But I wanted people to just be able to fire up GarageBand and quickly make a song, at the expense of not really knowing what they were doing yet.
@whitaker
so let s say we have a C major scale
it contains the A B C D E notes
for each of theses notes we build a major chord which 1st is A for A ,B for B,C for C and so on…
for each chord to be complete we must has a 3rd
(a 3rd can be major or minor)
since we are within a major scale we “try” to construct only major chords(with a major 3rd)
note A from the scale become an A chord , composed with a 1st(A) and a 3rd major.
But the 3rd major doesn’t belong to the C major scale, so we must use a 3rd minor instead(which belong to the scale)
that s why we obtain an Am instead of a A chord
am i correct?
(very cool tutorial anyway!)
@doe Yeah! You can definitely think about it that way. Everything you said makes sense. However, I do think you’re over complicating things.
Just think of it this way: every triad needs a 1st, 3rd, and 5th. So you don’t really have to worry about trying to build a major or minor chord. You just play the triad based on the root note and with the keys of the scale, and you will end up with either major or minor (or diminished). For example, if you are in the B scale and you start a chord on G#, the triad has to be made up of G#, B, and D#. Of course, a G# major chord would have a B# instead of a B, but you don’t have to worry about that because you know B# is not in the key of B.
Does this make sense?
@whitaker
“Does this make sense?”
absolutely, now its perfectly clear
now we need a rythm theory tutorial !!
This is just what I needed to get started in Music Theory. Thank you!
Jawad Shuaib
Wow … this is just what I needed (and still need). I feel like I have a good feel for putting melodies together, but without understanding any music theory it’s pretty much hit and miss. Thank you for the detailed post. Great information and its definitely something I’ll re-read. Off to play with Garageband now and follow along with your tutorial.
Great resource. Do you have one more oriented toward guitar? And I think I’ll be referring to this on my guitar lesson website. I hope that’s okay. Thanks!
~Johnny
@Johnny Lee
I don’t have one on guitar (yet) but I should! And yes it’s definitely okay to reference it!
@Paul Osburn
Awesome! If you come up with anything cool, free feel to share.
Whitaker,
Great post!
I played piano and trumpet as a kid, but never learned any of the theory. The reason I quit was because I could only play music not create it. While reading your post I was able to cobble together some simple tunes! Nothing worth recording or sharing yet but well on the way with only this post!!
I’ve read this over 10 times and I get lost at the end of the chord progressions where you fancy up the blockiness. I’m also not quite getting melodies. If you could touch a little more on what you did there on those twoI would appreciate it. Maybe just put the image from GarageBand would be enough for the melody.
1331’s recommended thetamusic.com has a great visual that explains the major/minor thing very simply as well as thirds and such. Very good compliment to you post, especially as I’ve heard the terms but had no idea what they meant.
Thanks for the huge boost in motivation and ability! Looking forward to future posts and your growth and success as a game developer!
David Vondracek
This is probably THE best post I’ve ever read for introducing the “secret science” of music to basically everybody. I’ve been playing guitar for a few years now, and this got me entirely motivated to pick it up and make some of these ideas I’ve imagined [always wanted to make my own music] a reality. Reading books didn’t work out too well – who wants to read chapters about letters and how “rounded” certain notes / chords sound together?
Thanks for taking the time out to make a great post, can’t wait for more.
See! This is the kind of thing I wanted to know, particularly how to put a melody together. I must have bad luck because I never can find rules about what sounds good, etc. This may just be that missing piece of info that’ll make it all click. I hope so. Thanks
@Alan
‘What I want to know is what chords/chord progressions trigger what emotions, and why.’
To fully answer your question would take a lot more information, time, and theory than one internet post could provide. The best way to figure it out would be to play around on a keyboard, guitar, or anything capable of producing at least two notes at a time and try to simulate what I’ll describe below.
Pick one note, let’s say C, and sustain it in a low octave. Then play the next note in the C major scale, which would be D, over the top of it an octave or two up, and hold it for a while (and by a while I mean 20 seconds or more). You’ll want to listen for a few things: a.) how the two pitches sound together – are they clashing in any way? do you hear any ‘beats’ in the sound waves?; b.) does the D want to move to another note or sit there? does it make you want to hear a different pitch?; c.) does it sound aggressive or at peace?
I know some of those above adjectives are confusing, so here’s something to maybe help you classify the sound you’re hearing (it will also help you build better melodies!):
The chart below defines how the notes, or scales degrees, in a major scale relate and interact within a scale. I’ll give you the pitch, the scale degree number, the function of the degree, the name of the degree, and then its tendency within the scale.
Major Scale Melodic Tendencies (this chart can be used in all 15 – yes there are 15, not 12 – major scales, but we’ll keep on with C major):
C – 1 – Tonic – Strong Tone – Rest (meaning stay where it is)
D – 2 – Supertonic – Hopeful Tone – Fall to Tonic
E – 3 – Mediant – Calm or Peaceful Tone – Rest
F – 4 – Subdominant – Desolate Tone – Fall to Mediant (extremely unstable tone)
G – 5 – Dominant – Bright Tone – Rest
A – 6 – Submediant – Mournful Tone – Fall to Dominant
B – 7 – Leading Tone – Piercing or Pointed Tone – Rise to Tonic (extremely unstable tone)
As you go through the previous exercise of playing two notes together and listening to how they interact with each other, keep this chart in mind and test yourself to see if you can hear the tendencies in those tones. Once you become familiar with the way they play with each other, you’ll be able to write music that moves people without even having to hear it.
What makes music so moving and powerful is nothing more than subtleties in sound. Knowing when and how to manipulate those melodic tendencies is the key to writing emotionally provocative music.
I hate to cut this comment short, but your question was by far the easiest to answer, yet most difficult to explain to a forum of people with almost no understanding of the fundamentals of music. If you really want to know, then do as ScarlettLime says and check out ‘Alfred’s Essentials of Music Theory: A Complete Self-Study Course for All Musicians,’ or take a class at your nearest university.
All the best
DBell
B.A. Music Theory
@DBell
Wow, what an awesome, thorough description. Way better than I could have explained it all.
@dbell
i agress with withaker , very interesting post
thanks !
sorry for the mistyping :
i meant “i agree” and not “i agress”
@Alan “What I want to know is what chords/chord progressions trigger what emotions, and why”
Yes, so do we all… 10 years in and I’m still working that out
@Dbell “…your question was by far the easiest to answer…”
I disagree =)
You’ve described what discernable sonic effect particular chord progressions have, alluded to the role of dissonance and intervallic relationships in harmonic composition. However to really enquire of the actual emotions triggered by particular chord progressions/melodies/harmonic content is a question that can (and should) be debated and explored for eternity.
What makes a ’sad’ song ’sad’? What makes a ‘happy’ song? Why can’t a minor chord sound pleasant and happy? Why can’t a major chord represent melancholy, or angst, or sorrow? What if I find the clashing of b2 intervals beautiful, pleasant, happy etc?
What if we’re looking at non-diatonic chord progressions which don’t rely on a key centre? Could a succession of dominant 7 chords, perhaps with little resolve, sound complete? Could we make it?
DBell’s description depicts a very accurate traditional view of chord functionality; but when it comes to composition, it wholly depends on your intention… how the melody fits, where the chord is moving to, what dynamic it is played with, what tempo etc. To express and trigger an emotion presents a lifetime of questioning and deliberating, in describing sounds to yourself and in musically explaining them to others. It will start you on a journey of what music *really* means. But I assure you, it is not a simple answer =)
This is excellent! Could you add a note to the top of the article that there is a second part and link to it?
@aaron
I just updated it. Thanks for the suggestion!
oh my god! Whitaker,thank you so much for writing such a great post!
And now I realized that I really love music, and you make me really wanna learn to produce music …
I am so happy to see what you write here,and I really enjoy the music and the article here! The melody is beautiful and makes me a great mood ~
I really wanna learn something more and really wanna try something,
and I think the best thing is that I found I love it!
thank you,Whitaker!