Aha Chord
CoursesReviewTopics

© 2026 LastCapsule Inc.

  • Tools
  • About Aha Chord
  • Terms of use
  • Privacy policy
  • Contact(opens in a new tab)

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.

Advanced · About 13 minDraft

Writing music for film and video games

Sometimes no one knows when the next scene will start. How can the music still match the scene 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?

1 / 4

Learn

Music for the moment the door opens

Film
123456
1 bar = 2.4 sec2.4 sec × 4 bars = 9.6 sec

This is a scene from a film. Play it, and listen to the music at the moment the door opens.

At a of 100 in 4/4 time (a with 4 in each ), one bar lasts 2.4 seconds. The door opens at 9.6 seconds. That’s exactly the start of bar 5.

In a film, the time of each event is fixed in advance. So you can write the music so that a lands right at that moment. A moment like this, where you want the music to match the picture, is called a hit point.

GameNow let’s try a game. The enemy appears at a different moment each time, depending on the player.

Predict

Imagine you stop the current music the moment the enemy appears. Then you start the battle music from the beginning. How do you think it will sound?

Trust your first instinct and pick one within 10 seconds (10 sec left).

An enemy that could come at any time

Game
Now: exploration music
12345678

Switched at the start of a barSwitched partway through a bar

PercussionLow strings

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?

Insight

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.

2 / 4

Recap

What we found

  • In a film, the time of each event is fixed. So we could write the music so that a strong beat lands on that moment
  • In a game, the moment of the switch isn’t fixed. When the music switched the moment you pressed, it was cut off partway through a beat
  • Two ways of writing kept the music going, no matter when you pressed. One waits for the start of a bar, then moves to the next section. The other adds or removes layers of the same length without stopping the music

Terms

hit point
A moment in a film where you want the music to match
adaptive music
Music that changes with the state of a game
horizontal re-sequencing
A way of writing where sections are chosen to fit the state of the game, then linked at points such as the start of a bar
transition
A short piece of music that links two sections
vertical layering
A way of writing where layers of the same length are added or removed to fit the state of the game
stem
One of the layers that a piece of music is split into, by role
3 / 4

Apply

With horizontal re-sequencing, the wait is 1 bar at most

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.

Layers for vertical layering need the same tempo, length, and key

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

12345678
PercussionLow stringsDanger: high strings and brass6-bar brass

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.

Switching to a distant key: keep a shared note, and the music connects

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”

Write game music so it can repeat without ending

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.

For film music, set the tempo from the event times, and choose which moments to match

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.

  • In recording, musicians often listen to a sound that marks the tempo. This is called a click track.
  • Matching the music too closely to every movement on screen is called Mickey Mousing. How closely to match depends on the work and on taste. Choose which moments to match, and let the flow of the music lead the rest.
  • A short or tied to a character, an object, or an idea is called a leitmotif. It changes shape to fit each scene (for example, Wagner’s The Ring of the Nibelung, and Star Wars from 1977, with music by John Williams). If you switch the chords of the same between major and minor, you can show a bright scene and a dark scene for the same character (an example this site came up with).

Famous games use these ideas too

  • Super Mario Bros. (1985): When the time left drops below 100, a short signal plays. Then the same music plays at a faster tempo. This is an example of music that changes with the state of the game.
  • Super Mario World (1990): When Mario rides Yoshi, a bongo layer joins the same music. This is an example of vertical layering.
  • Monkey Island 2: LeChuck’s Revenge (1991): Michael Land and Peter McConnell created a system called iMUSE. It put markers for branches and loops into the music. With these, the music connected without breaks as the scenes changed. This is an example of horizontal re-sequencing.
Level: AdvancedGo deeper
  • Horizontal re-sequencing and vertical layering are used together. Each section has its own layers. Big changes use horizontal re-sequencing, and small changes use vertical layering (Phillips 2014).
  • If you write every layer over the same , the chords never clash, however you combine the layers. If you want a different chord in one layer, decide in advance which bars that layer can be added in.
  • In horizontal re-sequencing, you decide for each section where the music is allowed to leave (exit markers). If the start of every bar is an exit, the music reacts quickly. But it often cuts off in the middle of a . If only the ends of phrases are exits, the music sounds natural. But it reacts more slowly.
  • A short piece of music that plays for an event (an enemy appears, you pick up an item, and so on) is called a stinger.
  • Some writers distinguish adaptive music, which reacts to the state of the game, from interactive sound, which reacts directly to what the player does (Collins 2008). Not every book draws this line in the same way.
  • Sometimes you change the tempo partway through a film to match many hit points. For this, composers use a table of the tempo at each point in time (a tempo map). They also use the video sync feature of a . → “Making MIDI sound human”
  • Film music research has long discussed how the same picture can mean something different with different music (Gorbman 1987). Lehman 2018 looks at how jumps to distant chords outside the are used to express “surprise.”
4 / 4

Check

Listen · 1 / 5
Listen and choose · 2 / 5
Calculate · 3 / 5
Choose · 4 / 5
Calculate · 5 / 5
Back to topics

Answer all the Check questions above to move on.