Dynamic Music Transitions: Timing and Fades

intermediate · about 20 minutes · checked

You will set the timing and fade for each move between Explore, Danger and Combat.

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

A dynamic music transition has two settings that you can hear: Trigger, which decides when the change starts, and Fade time, which decides how long the old and new music overlap. In Mowjera each arrow in the transition graph holds these for one direction, from one state to another.

Before you start

Build the three loops in how to make video game music. Renaming Tension to Danger keeps the arrows that were already there.

Step 1: open a transition

Click an arrow in the State Transitions panel, or click its row in the list under the graph. The picture uses a different score, but the controls are the same.

A selected transition arrow with the Immediate, Next Bar and Next Phrase trigger buttons highlighted
A selected transition arrow with the Immediate, Next Bar and Next Phrase trigger buttons highlighted

Highlight 1 is the graph. Highlights 2, 3 and 4 are Immediate, Next Bar and Next Phrase.

What do Immediate, Next Bar and Next Phrase mean?

TriggerWhen the fade startsLongest wait in 4/4 at 110 BPM
ImmediateAs soon as the change is requestedNone
Next BarAt the next bar line (the start of a group of beats)One bar, about 2.2 seconds
Next PhraseAt the next start of bar 1, 3, 5, 7 and so onTwo bars, about 4.4 seconds

A phrase here always means two bars, counted from the start of the loop. A request made exactly on a boundary does not wait.

Step 2: set the three moments

Click each arrow and set these values. Drag the Fade time slider, which runs from 0.5 to 8 seconds.

From and toTriggerFade timeWhy
Explore to DangerNext Bar2.0sUnease should creep in
Danger to CombatImmediate0.5sAn ambush should hit now
Explore to CombatImmediate0.8sThe same, from calm
Combat to ExploreNext Phrase3.0sRelief can take its time
Danger to ExploreNext Phrase3.0sThe threat passes slowly

In Condition label, write the game event, such as "enemy engages". It is a note for people. It does not trigger anything in the editor.

Step 3: add the missing direction

A new score has no arrow from Combat back to Danger. In the graph, press on the Combat circle, drag to the Danger circle, and let go. A new arrow appears, already selected, set to Next Bar with a 2 second fade. Change it if you like.

Each arrow works one way only. To remove one, select it and press Delete.

What happens when no transition is defined?

The change still happens. Mowjera uses Next Bar with a 2 second fade. It does not borrow the settings of the arrow pointing the other way.

What you should hear

Play Explore, then click the triangle beside Danger. The label Playing Danger appears at once, but the sound changes at the next bar line. During the fade you hear both states, one falling and one rising.

The new state does not restart from its first note. It joins at the current position in the loop, as if it had been running silently. If a long bass or pad note is already under way at that point, you hear the rest of it. Drum hits are not replayed. A stinger track (a short one-off hit) plays once as its state comes in.

Do these settings work in a game engine?

They drive playback in the editor, on the score page and in the playable demo. The generated Unity, Unreal and Godot controllers work with a trigger mode and fade time that you set in the engine. Your settings for each arrow are listed in the bundle's files, so connect them in your game code if you need them. See exporting a game music bundle.

If something goes wrong

ProblemFix
Dragging makes no new arrowAn arrow in that direction already exists. Click it to edit it
The change feels lateChoose Next Bar or Immediate instead of Next Phrase
The change sounds abruptLengthen the fade, or wait for a bar line
You edited the wrong directionCheck the two names above the Trigger buttons

What to try next

Add movement inside a state with vertical layering, then test the whole system.

Try it now

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

Open my dashboard

From the blog