How to Make a Seamless Music Loop and Export It

intermediate · about 15 minutes · checked

You will download your game score as a zip and know what every file in it does.

All lessons

To make a seamless music loop, the sound still fading out at the end must continue over the start of the next round. Mowjera does this for you when you export: press Export Bundle and each game state becomes one WAV audio file made to repeat, packed in a zip with engine scripts, MIDI files and notes.

Before you start

  • You need a game score with at least one game state, such as Explore or Alarm. A song made with + New Song has no Export Bundle button. For songs, follow export your song.
  • Listen to each state and to your transitions first.
  • Check the M (mute) button on every track. A muted track is left out of the export. The S (solo) button does not change what is exported.

Step 1: press Export Bundle

Export panel with 1 the Export Bundle button, 2 Download MIDI and 3 Download Stems
Export panel with 1 the Export Bundle button, 2 Download MIDI and 3 Download Stems

Press Export Bundle (1), at the bottom of the right panel. The shortcut is Ctrl+E, or Cmd+E on a Mac.

Step 2: wait for the render

The Exporting bundle window showing progress while a state renders
The Exporting bundle window showing progress while a state renders

Rendering means your browser turns the notes into sound files. The Exporting bundle window names the state it is working on. Keep the tab open. At the end your browser downloads a file named after your score, ending in -mowjera.zip.

What is inside the zip?

File or folderWhat it is for
audio/One looping WAV per state, for example Alarm.wav (16-bit, 44.1 kHz stereo from this button)
midi/One MIDI file per state: the notes, for editing in other music software
unity/Mowjera.csA music controller script for Unity
unreal/Mowjera.h and unreal/Mowjera.cppA music component for Unreal Engine
godot/Mowjera.gdA music script for Godot 4
metadata.jsonA data file listing tempo, states, files, transitions and layer rules
README.mdShort setup steps and your transition list
credits.txtA suggested credit line. Composer Pro and Studio exports leave it out

Studio users who saved their own engine templates also get a custom/ folder.

State names become file names without spaces or symbols. A state called boss fight becomes BossFight.wav.

How does the loop stay seamless?

The exporter plays your loop twice in the background and keeps the second pass, so it already contains the fade-out from the first. It then adds the sound that rings on after the end back onto the beginning. The file has exactly the length of the loop.

It also balances loudness between states, so a quiet menu does not sit far below a busy fight. Then it applies the Loudness target in the Master window, which is -14 LUFS (a loudness unit) unless you change it.

The WAV files from this button carry no loop markers inside them. Your game engine must be told to loop each file. The included scripts are written to do that, but the authors of this guide have not tested the exports inside any engine.

What are layer stems?

If a track has an intensity layer or layer rules, a checkbox appears under the button: Layer stems — bed + one file per layered track, mixed at runtime. It is ticked by default. A bed is the part of a state that always plays. A stem is a separate file for one track, such as Alarm__Drums.wav. Untick the box to get one full mix per state. See intensity layers and parameters.

What you should hear

Open one WAV in an audio player that can repeat a file. It should come round without a click or a sudden cut. Some players add their own small pause between repeats, so confirm the loop in your engine too.

If something goes wrong

ProblemFix
There is no Export Bundle buttonThe score is a song. Make a game score with + New Score
A track is missing from the audioTurn off its M button and export again
You see "Export failed"Reload the page, wait until it shows saved, and try again. The browser console holds the error details
The loop pauses in your engineCheck that looping is switched on for that file
Layer files are missingTick the Layer stems box, and check that the layered track has notes or audio and is not muted

What to try next

Put the files in a game: Unity, Godot or Unreal Engine.

Try it now

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

Open my dashboard

From the blog