This is a DEMO-game to illustrate how music and sound effects can be implemented in an online game using iMusic and mixed in a virtual mixer created using WebAudioXML. Both technologies build on WebAudioAPI. More documentation is found on MDN web docs.
Play the game and listen to how the music adapts to the different pages and intensity levels in the game. The more lost pancakes - the more intense music and background noise. There are also Motifs playing when picking or loosing pancakes (synchronized to the nearest 1/16-note in the background loops) and as well as when winning or loosing the game (played on trumpet by our youngest son quantized to the nearest 1/8-note).
For more details about the implementation of the music, please read the comments in the imusic.xml-file.
For more details about the mixer implementation, please read the comments in the mixer.xml-file.
Finally, for more details about the game logic and how the events and variables are connected to iMusic and WebAudioXML, please refere to the myscript.js-file
Programming and music by Hans Lindetorp
Missade:
FÄngade: