This topic is a draft
We haven’t yet tried it out ourselves to check that it’s easy to understand. We believe the content is correct, but many topics don’t teach it very well yet. We’ve published them anyway because they can help you see the big picture, and we think they’re somewhat useful as lessons even as they are. The content and layout may change.
In “Building energy in a song” we took parts out just before the peak, so the chorus felt bigger. That worked because the composer could decide where the peak goes. In a film, the scenes are fixed in advance. In a game, the scenes change depending on the player. How should we write music for each of them?
This is a scene from a film. Play it, and listen to the music at the moment the door opens.
GameNow let’s try a game. The enemy appears at a different moment each time, depending on the player.
Trust your first instinct and pick one within 10 seconds (10 sec left).
Switched at the start of a barSwitched partway through a bar
Press “Start” to play the music. Then, with ① selected, press “Enemy appears.” Press it at different moments, and try it a few times.
How to switch
In the film, the music matched perfectly. But why did the music fall apart with ① each time you pressed? And why did it never fall apart with ② and ③, no matter when you pressed?
In game music, the composer can’t decide the moment when the music switches. So the music must keep going, no matter when the switch happens. To do this, you plan the break points and how the music stacks before you write. You write sections where the switch waits for a break between bars, or layers of the same length that stack on top of each other.
Music that changes with the state of the game is called adaptive music.
Writing music by linking sections one after another in a row is called horizontal re-sequencing. A short piece of music that links two sections is called a transition.
Writing music by stacking layers of the same length, and adding or removing them, is called vertical layering. Each single layer is called a stem.
In 4/4, the wait is at most 240 ÷ seconds. At a tempo of 100, that’s 2.4 seconds. The waiting times you saw with ② always stayed within this.
If the wait is too long, the music sounds late for the change in the scene. So some games let the music switch at the next beat instead of the next bar. There is a trade-off between a quick response and natural-sounding music. Which one matters more depends on the scene.
If even one of these is off, the music falls apart when the layers stack. For an 8-bar loop, make each layer 1, 2, 4, or 8 bars long. These lengths divide evenly into 8. Let’s add a 6-bar brass layer, and hear how the point where it starts over drifts further out of line with the loop.
Stopped
Press “Play.” Then try pressing “Danger” and “6-bar brass.” Each one adds another layer.
In “Building energy in a song” you changed the “thickness” (how many parts play at once). Vertical layering also changes the thickness. But here, the state of the game changes it, not the composer. The idea is the same. You create contrast by adding and removing parts.
The exploration music centered on the C chord, and the battle music on the A♭ chord. These two chords share one note, C. Chords related like this are called chromatic mediants. You don’t need a to prepare the change. If you keep the shared note, the music connects smoothly, and the mood changes all at once. With ②, the note that slowly got louder during the transition (the Link box) was this C (this is a writing tip suggested by this site). → “Non-functional harmony”
You can’t know how long the player will stay in one place. So you write the music so it can go from its end back to its start and repeat. The part that repeats is called a loop. In the game scene, it’s the place where the vertical line jumped from bar 8 back to bar 1. At that point, make sure the beat, the volume, and the reverb don’t break off.
The length of 1 beat (in seconds) is 60 ÷ BPM. The other way around, BPM = 60 × number of beats ÷ seconds. So you can set the tempo from the time of an event. For the door scene, 60 × 16 ÷ 9.6 = 100.
Answer all the Check questions above to move on.