The wave thing, is it for play (back) of a recording made using waves?
PS: BUZZER#s are variables too... it is good practice to define them as such (epecially when evetually putting the code into a module. Not adding the var, messes with the global name space. In this sample code not releveant because it is already in the global namespace). All upper case makes it clear that it is not really a var. For the pitches (PITCHES), the property names do not need to be quoted.
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.
Really nice code!
The wave thing, is it for play (back) of a recording made using waves?
PS: BUZZER#s are variables too... it is good practice to define them as such (epecially when evetually putting the code into a module. Not adding the var, messes with the global name space. In this sample code not releveant because it is already in the global namespace). All upper case makes it clear that it is not really a var. For the pitches (PITCHES), the property names do not need to be quoted.