<font face="Arial, Helvetica, sans-serif"><center><font size="5">Try it!
Layered Interactive Music (demo)</font>
No plugins, uses Web Audio API for looping.</center>
This brief demo demonstrates interactive music through layering/versioning, and the changes are made through in-game triggers. It can be applied in nearly any setting, though it does have best results when using a browser that supports the Web Audio API (for seamless looping). This demo incorporates five different version of a track, syncs them, and dynamically brings different tracks to the forefront. It is triggered by simple zones which the player may walk through. There is also a DANGER button in the corner that triggers a darker, more intense audio track. It is all done with no third-party plugins in Scirra Construct 2 and can be controlled via Touch, Mouse, WASD, or Arrow Keys.
I've uploaded a commented CAPX with the audio files included so you can see how I have it all set up. It is a very easy-to-implement system and can really make a big difference to a lot of games.