Greetings!
This is a dynamic music system created in Unreal Engine 5 using MetaSounds. Transitions between music layers are synchronized to the BPM and time signature and, in this case, can be triggered on every second beat.
Ambient, danger, and fight music layers can be triggered in any order. This is a test MetaSound source, so the setup is intentionally a bit chaotic and spaghetti-coded 🙂
There are no crossfades — each music layer is controlled by its own trigger and stops automatically when another layer starts playing.