I'd suggest something like this: http://www.espruino.com/Making+Music as long as the buzzer is a speaker rather than a buzzer? It may be that all it does is beeps at one frequency?
I think individual beeps for music are the best way forwards - you can use Waveform to play sounds when something happens, but trying to use it for Music alongside something else may cause pain :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'd suggest something like this: http://www.espruino.com/Making+Music as long as the buzzer is a speaker rather than a buzzer? It may be that all it does is beeps at one frequency?
I think individual beeps for music are the best way forwards - you can use Waveform to play sounds when something happens, but trying to use it for Music alongside something else may cause pain :)