How to Make Video Game Music with Game States

intermediate · about 30 minutes · checked

You will build three game states, Explore, Danger and Combat, that sound clearly different from each other.

All lessons
Watch · 2:49Video: Make Stealth-to-Combat Adaptive Game Music

To make video game music that follows the action, write a separate loop for each game moment. In Mowjera each loop is a game state. Here you keep the ready-made Explore music, write a sparse Danger loop and a busy Combat loop, all at one speed so they can swap smoothly.

Before you start

Note names such as A2 mean the note A in octave 2. The note grid labels each C. A2 is three rows below the row labelled C3.

How should the three states differ?

StateFeelingWhat plays
ExploreOpen and relaxedMelody, bass, drums (already written)
DangerWaiting, uneasySlow bass pulse and a held pad, no drums
CombatUrgentFast bass, full drums, a short repeating tune

Step 1: name your states

A new score has a state called Tension. Double-click its name, type Danger, and press Enter. Its arrows in the transition graph stay connected.

You can add more states with + Add State. This lesson does not need any. Leave Menu, Victory and Death for now.

Step 2: shorten the new loops

  1. Click Danger in the list.
  2. Above the tracks, open the menu that reads loop: score (8 bars) and choose loop: 4 bars.
  3. Click Combat and do the same.

Explore stays at 8 bars. Each state can loop at its own length.

Step 3: write Danger

  1. Select Danger. Press + Add Track and choose Bass.
  2. Press the arrows button on that track to open the full-screen editor.
  3. In bar 1, click A2 once at the start of each of the four beats. Each click makes a short note.
  4. Hold Shift and drag a box around the four notes. Press Ctrl+D (Cmd+D on a Mac) three times to fill bars 2 to 4.
  5. Press Esc to close the editor.
  6. Press + Add Track, choose Atmosphere, and open its editor.
  7. At the start of bar 1, click A3 and drag right to the end of bar 4. Do the same for E4.

An atmosphere track is for long background sounds, often called a pad.

Step 4: write Combat

  1. Select Combat. Add a Bass track. In bar 1, click A2 on every half beat, eight notes in all.
  2. Select those notes and press Ctrl+D three times.
  3. Add a Drums track and open it. In bar 1, click Kick on beats 1 and 3, Snare on beats 2 and 4, and Hat halfway between each beat and the next.
  4. Select the whole bar and press Ctrl+D three times.
  5. Open the empty Lead track. Click A4, C5, E5 and D5, one at the start of each beat in bar 1. Copy the bar three times the same way.
The full-screen drum editor showing a two-bar beat with kick, snare and hi-hat rows
The full-screen drum editor showing a two-bar beat with kick, snare and hi-hat rows

The picture, from another project, shows the drum rows with the same pattern over two bars.

What you should hear

Press the triangle beside each state in turn. Danger should feel empty and steady. Combat should feel crowded and quick. All three share one tempo, so a switch does not jolt the speed.

If two states sound alike, change how many notes they have before changing the notes themselves. The difference between four bass notes per bar and eight is easy to hear.

If something goes wrong

ProblemFix
Copies land in the wrong placePress undo, then make sure your selection runs from beat 1 into beat 4
Ctrl+D does nothingShift-drag around the notes again so they are selected, then press it
A state is silentCheck it has notes (coloured dot) and that no track has M or another track's S switched on
You cannot find A2Scroll the note grid until you see the C3 label

What to try next

Control how the states connect with dynamic music transitions, then add vertical layers. For ideas on notes, see how to write a melody.

Try it now

Reading helps; clicking teaches. Open your dashboard and do the steps.

Open my dashboard

From the blog