Definition
Video game music must work for an indeterminate duration (the player may stay in a level for 2 minutes or 2 hours) and react to unpredictable events (combat, danger, victory). This is why we speak of interactive or adaptive music: the soundtrack changes in real time based on the state of the game. The first famous system was LucasArts' iMUSE (Michael Land and Peter McConnell), used in Monkey Island 2 (1991), which handled synchronized musical transitions between scenes.
The loop
- Typical structure: intro (optional, played once) + loop body of 1–3 minutes.
- Seamless: the last beat must lead to the first; the final harmony prepares the initial one (e.g., ending on V or on VII to return to i).
- Reverb tails: if the file repeats, the reverb tail of the ending must “enter” the beginning. Technique: export two repetitions of the loop and keep the second (which contains the tails of the first), or sum the final tail into the start of the file.
- Format: files with loop points exact to the sample (many engines read the loop points of WAV or OGG files).
- Variety: to avoid fatigue you write several alternating loops, layered variations, or random sections.
The two main adaptive techniques
- Horizontal resequencing: the music is divided into segments (A, B, C, transitions, endings) and the engine chooses the next one based on the state. Transitions happen on the next beat, bar, or end of phrase so they stay musical.
- Vertical layering (re-mixing): a piece composed in synchronized layers (stems), switched on or off with fades according to intensity. Example: exploration = pad + light percussion; danger = + ostinato strings; combat = + full drums and brass.
The two techniques are often combined.
Other tools
- Stingers: short overlaid fragments (victory, item picked up, defeat) synchronized to the tempo.
- Written transitions: connecting bars between two states (e.g., from exploration to combat in 1 bar of fill).
- Continuous parameters (RTPC): a game value (health, speed) controls a filter, the volume of a layer, or the tempo.
- Generative / procedural music: phrases recombined according to rules (some open-world games and indie titles).
Middleware
- Wwise (Audiokinetic) and FMOD (Firelight Technologies): the standard tools for integrating adaptive music in Unity and Unreal. They let you define segments, exit cues, transitions, and layers.
- Unreal Engine has a native system (MetaSounds/Quartz for tempo synchronization).
Writing for stems: practical rules
- All layers in the same key and at the same tempo, or in compatible keys. The Red Dead Redemption soundtrack (2010) was recorded at 130 BPM in A minor precisely to allow free combinations between the fragments.
- Each layer must stand on its own and together with the others: no harmonic dependencies (the string layer must not contain the only third of the chord if it can be switched off).
- Room for sound effects and dialogue: leave the 1–4 kHz zone free in states with a lot of speech.
- Dynamic mix: leave headroom; the engine sums music, effects, and voices (typical console targets are around −23/−24 LUFS integrated for the overall mix, according to the recommendations of some publishers; verify case by case).
Use in real games
- Koji Kondo — Super Mario Bros. (1985): very short loops and the theme that speeds up when time is running out.
- LucasArts — Monkey Island 2 (1991): iMUSE.
- Red Dead Redemption (2010, Woody Jackson and Bill Elm): combinable fragments at 130 BPM in A minor.
- Austin Wintory — Journey (2012): music that follows the player's path and encounters.
- Mick Gordon — Doom (2016): layers of electronic metal that rise with the intensity of combat.
Practical exercise
In FL Studio, compose a 32-bar piece at 120 BPM in D minor with 4 layers exported as stems: pad, light percussion, ostinato strings, drums and brass. Prepare 3 stingers (victory, danger, defeat) of 1–2 bars and a seamless loop with the reverb tail folded into the start. Try the combinations by switching the stems on and off.
Related topics
Leitmotif and themes, Minimalist composition, Pedal point and ostinato, Orchestration with virtual libraries in the DAW, Layering and arranging by frequency and stereo.