Playing with Phaser and a sound library called Tone.js, i was able to assemble a prototype of something like a music box. Using Tone.js is very interesting how it can handle the sound for an experiment like the one presented in this post.
Tone.js is able to create the notes from scratch and with a bit of luck execute from Phaser.io
The experiment uses Phaser as the trigger of the notes in Tone.js, and the notes can be added as expected with the Tone.js notation system. In this case the music was written by a friend who is a musician and was very effective recreating the notes from A-HA TAKE ON ME.
Click on the link bellow to listen and see the Tone.js and Phaser experiment: