Writing Game Music : Part I
Ever wondered how to write your own game music? Have you ever read guides that don't explain the things you want to know about music? Well, here's part I of a 3 part series of articles that will explain everything you need to know about writing music
A revised edition of this article combining all 4 parts is now available hereThe music for a game is very important. It sets the mood for the game, and does so much more. Without the music, it will be a lot harder to get the game player to get into the game. In almost every game development team I've been in, the musician was the one hired last, which really should not happen. As I see it, a good game has three basic parts: the programming, the sound, and the art. The sound is split up into two parts, the sound effects, and the music. Usually, for a small project, the sound effects creator and the music creator are the same person. But when you're hiring for a project, you must make sure your game has people that can provide those basic elements. In this article, I'm going to talk about how to create the music. In an article of this size, I cannot explain absolutely everything about music. This article will be a lot easier for you if you already know how to read music. But in case you don't know anything about writing music, then I'll try to get you started. I'll explain how to read basic music, something most other music articles don't do. Soon I'll write part II of this article, which should explain how to come up with music ideas. (Ain't I just a great guy?) [size="5"]I: Notes and Rests [size="3"]A: Basic Notes Music is basically made of different notes. These notes each have a different pitch and are held for a certain amount of time. So, in theory, that's basically what you're reading when you look at a sheet of music: what pitch to play the notes at, and how long to play them. Of course, another important factor is in music, which is volume, but I won't get into that, as that's kind of advanced. As you can see, there are different kinds of notes: There are also sixty-fourth notes, but we don't need to get into that. Okay, just by looking at what kind of note it is, you will be able to tell how long each note is held. The whole note is held for four beats. The half note is held for two beats. The quarter note is held for one beat, the eighth note is held for 1/2 beat, the sixteenth note is held for 1/4 beat, and the thirty-second note is held for 1/8 beat. The only time these values are different is when the bottom number of the time signature is something other than four, but you don't need to worry about that. See how the eighth note and everything below that have flags? Whenever you have two or more notes with flags that are next to each other, you can combine their flags together. Let's say you had two eighth notes, one sixteenth note, two thirty-second notes, and one eighth note, in that order. It would look something like this: Now, say you want something else, like you want to hold a note for three beats. Hmm...the half note is held for two beats, and the quarter note is held for one beat, but there's nothing for three beats. Fear not my people, there is a way. Just use a tie, which is a curved line that connects the two notes: And now, when you play this, it will be held for three beats. Even with a tie, there still is a combination you can't make...what if you want a note to hold for 1/3 beat?!?!? No, don't panic yet, there's still a way. Just change the note into a triplet. To change a note into a triplet, just put a "3" above or below the note or the group of notes. When a note becomes a triplet, it becomes 2/3 of its original value. For example, if you make a half note into a triplet, that triplet becomes worth 4/3 beats. (a half note is originally worth 2 beats, so 2 multiplied by 2/3 is 4/3.) The most commonly used triplet is the eighth note triplet. Three eighth note triplets equal one beat. So here are three eighth note triplets: Or, you could have put three different 3's, one over each note. It's easier to put it over the group, though. There's a problem to watch out for, though. Say you want to put one 3 over a group of notes to make them triplets. It only works when the group of notes are connected by their flags. Once again, here's a picture for you for an example: You've got to be super-specific with these music people. If you accidentally spill some ink and put a dot to the right of a note, you could mess things up. How? Well, that's dotted notes. If you put a dot to the right of a note, then the note becomes worth more beats. It becomes worth one half of the original note plus the value of the original note. So if you put a dot to the right of a whole note, it becomes worth six beats. Instead of dotting the whole note, you could just tie together a whole note and a half note, but the dot is a feature of music you can use, just in case you get lazy. Oh, and limit two dots per note. If you put two dots, then the second dot adds one half of the value of the dot. So if you double dot a whole note, it would be worth seven beats. (4 + 2 + 1.) [size="3"]B: Rests Alright, now let's move on a bit, and start talking about rests. Whenever you see a rest, it's the opposite of a note, it tells you not to play. So then, rests have beats. Here are some kinds of rests: Just like the notes, the whole rest is worth four beats, half rest is two beats, quarter rest is one beat, eighth rest is 1/2 beat, sixteenth rest is 1/4 beat, and thirty-second rest is 1/8 beat. So once again, when you see a rest, you don't play for that amount of time. If you see a whole note and then a quarter rest and then a quarter note, it means play for four beats, rest one beat, then play for another beat. Soon you'll learn how to find out the pitch of the note to play, but for now let's ignore that. For rests, basically the same rules apply as with notes. You can't use ties on rests, but you can put dots to the right of rests, and you can make them into triplets. (why would you want to tie two rests together anyway? A quarter rest tied to another quarter rest means the same as if those two weren't tied.) Yaaay! We're done with notes and rests! Now let's go to the staff. [size="5"]II: The Staff [size="3"]A: Measures and the Staff The staff is what all music is put on. It consists of five horizontal lines. The staff is split up into sections called measures. The vertical lines that separate measures are called measure bars. Here's a staff split up into three measures: That's nothing so far, but oh well. Now, notes are put on this staff, and depending on which note or space of the staff the note is put on, is the pitch of the note. Each different pitch has a letter name. The different letter names go from A-G, A being the lowest, and then they start all over. So the order of note pitches goes A, B, C, D, E, F, G, A, B, C, etc. Each line and space on the staff represents a pitch. Which line represents which pitch depends on what clef the staff has. Here are the two basic kinds of clefs: Take about a day to memorize these. There are ways to remember them, such as from down to up, on the treble clef, the spaces are "egbdf", or "Every Good Boy Does Fine". The spaces, from down to up, spell FACE. With the bass clef, from down to up, the spaces spell out "Great Big Dogs Frighten Animals", and the spaces spell "All Cows Eat Grass." There are thousands of ways to remember them, you can make up your own. On the staff, the higher up you go, the higher the pitch. What if you want a note that's not within reach of the clef? What if you want to reach an A pitch that's higher than the treble clef? Then you put a leger line. A leger line is a short line that acts as a sort of extension for the staff. Here's a picture of a few staffs with leger lines. Can you tell what notes these are? Let's take a look at the first note. Okay, the first line on the bottom is an E, and since that note is two pitches below the E, it must be a C. (The space between the leger line and the "E" counts as a note, too. That space is a D.) In order, those notes are: C, B, C, G, A, and G. The first note on that picture is a special C. It's not like the other C's, it's a special note known as "Middle C." On the Bass clef, the middle C is one leger line above the staff. (I'd draw a picture of it, but don't you think we've got too much pictures already?) [size="3"]B: Accidentals Okay, take a deep breath and let's move on. There are some pitches in between those pitches, like one in between C and D, etc. To get to those, you either sharp or flat a note. Making a note sharp moves it up, and making it flat moves it down. A sharp looks like a number sign ( # ) and a flat looks like a lower-case letter b. Just write those symbols before the note. So A# (A sharp) is the note in between A and B. It can also be called Bb(B flat). A note that has been sharped or flatted (or is that "sharpened" and "flattened"? I have no idea.) is called an Accidental. So, that in mind, here's the notes, in order from lowest to highest:
Related Tutorials
Beginner Graphics Programming Study Guide
This is a roadmap for learning the basics of graphics programming on one's own, from free online resources.
Manual, mipmapped atlas texture wrapping on lower-end mobiles (WebGL1/GLES 2)
Manual texture wrapping within atlas textures / tilemaps with mipmapping on mobiles without EXT_shader_texture_lod.
Capsule Collision Detection Tutorial
Collision detection between a Capsule and a Line Segment and a Capsule and a Capsule. Prerequisite: Linear Algebra (Ve…
Lesson 1 — What C# Actually Is
Why is C# the language driving the production of thousands of indie games using Unity and custom engines all around the…
Sphere with Plane and Polygon Collision Detection
In this video, I demonstrate how to detect collisions between a static sphere, planes, and polygons — a core concept in…
Steps to Make a Simple Game in Unity
if you’re diving into game development, Flappy Bird is basically the ‘hello world‘ of the gaming universe. It is the ul…
Discussion
More from John Licato
Comparing Shadow Mapping Techniques with Shadow Explorer
New Incentives and a Whole New Platform From The Intel AppUp developer program
The final installment in this series on Intel's AppUp program details additional incentives and opportunities for devel…
The Game Maker
This book excerpt contains the first chapter of the book that introduces beginning game developers to the Game Maker pr…













Discussion