How to make looping game music in your browser
Looping game music is a short piece, usually 8 to 32 bars, whose last bar leads straight back into its first so the seam is never noticed. You can write one for free in the Tracks browser studio, then export a WAV and trim it to the exact loop length.
What makes game music loop well?
A player might hear your track for ten minutes on one level. So a good loop has three traits: the end resolves back to the start, nothing in it demands attention, and it has enough small variation that repeats do not feel identical.
This is different from background music for a video, which plays once and fades out. A game loop never fades out, so the seam is the whole job.
Step 1: Pick a tempo and a length
Match tempo to the mood of the scene:
- 60 to 90 BPM: menus, exploration, calm towns.
- 100 to 130 BPM: platforming, puzzles, light action.
- 140 BPM and up: boss fights, races, chases.
Aim for 8 or 16 bars. At 120 BPM in 4/4, 16 bars lasts 32 seconds, which is long enough to avoid obvious repetition and short enough to keep the file small. The BPM by genre cheat sheet has more reference speeds.
Step 2: Write chords that come back home
Open the piano roll in the studio and write one chord per bar. The trick for looping is to make the final chord pull toward the first. A progression like i, VI, III, VII in a minor key does this naturally, because the last chord sets up the return to i. See chord progressions in the piano roll for how to enter them, and major vs minor scales if you are choosing a key.
Add a bass track that plays the root of each chord. Keep the bass pattern identical on the last bar and the first bar so the rhythm does not stutter at the seam.
Step 3: Add drums and a small hook
Program a steady drum pattern with the drum machine and keep it simple. A kick on the beat, a snare on 2 and 4, and a hi-hat pattern are enough. If the loop is 16 bars, change the last bar slightly, perhaps a short fill, so the loop has a sense of motion. Our guide to programming drum fills shows how, and hi-hat patterns helps keep the groove from feeling stiff.
For the melody, use three to five notes and repeat a short phrase. Game themes stick because they are simple. Chiptune-style sounds from the synth fit many games, and the chiptune guide covers that sound in detail.
Step 4: Keep the mix quiet and comfortable
Game music sits under footsteps, voices, and effects, and players hear it for hours. Pull the faders down, keep the master well below clipping, and tame harsh highs with a high-cut or gentle EQ. The gain staging guide explains how to check headroom.
Step 5: Test the loop before you export
Drag on the ruler in the arrange view to set the loop region around your bars, then press play and listen to the seam several times. Check for these problems:
- A click: a note cut off right at the loop point. Shorten the last note or let it end a hair early.
- A rhythm stumble: the last beat and the first beat are too close together, or the last bar has an extra note.
- A sudden volume jump: a sustained pad that starts at full volume on bar one. Start it earlier in the previous bar instead.
Step 6: Export and trim to the loop point
When you bounce the song to WAV or MP3, the export keeps a short tail after the last note so reverb and delay can ring out. That is good for a normal song and a problem for a loop, because the tail leaves silence or extra sound after your last bar. Open the WAV in any audio editor and trim it to exactly the loop length, or use your game engine's loop-point settings. The export guide covers the file formats.
Keep reverb and delay short on a loop so the trimmed seam stays clean.
Prefer WAV for games. MP3 files carry a small gap at the start and end, which can make a loop audibly hiccup. Your project stays on your device, and nothing is uploaded. Save the .tracks.json project file so you can edit the loop later.
Common mistakes
- A loop that ends with a big finish: a cymbal crash or final chord sounds like an ending, so the loop feels like it restarts rather than continues.
- Too short: a 2-bar loop is tiring within a minute. Go to 8 bars or more.
- Too many ideas: if every bar differs, players cannot hum it. Repeat a hook.
- Exporting MP3: use WAV so the loop point stays sample-accurate.
Frequently asked questions
How long should game music loop be?
Most background loops run 30 seconds to 2 minutes. Eight to 32 bars at a moderate tempo is a practical range.
Can I use music I make in Tracks in my game?
Music you compose yourself from your own notes and drum patterns is yours. Check the license on any samples or SoundFont files you import. The music ownership guide has more.
Do I need to install anything?
No. Tracks runs in a modern desktop browser with no account or download.
Write your game's soundtrack
Build a loop, test the seam, and export it. Free, in your browser, nothing uploaded.