Adding music and sounds to your game is easy with OpenMusic.Gallery. Just add a few lines of code.
<script src="https://openmusic.gallery/omg.js"></script>
var music = new OMusicPlayer()
music.prepareSongFromURL("http://openmusic.gallery/data/1333")
var laserSound = music.getSound("SFX", "laser")
music.play()
laserSound.play()
music.beatParams.bpm += 20
music.keyParams.rootNote += 1
music.rescaleSong()
// boss enters
music.mutePart("Boss", false);
// boss exits
music.mutePart("Boss", true);
music.stop()