synth = new Beep.Instrument() will build a bundle of
Trigger interfaces, each with its own
Notes—that is, a piano keyboard that you can begin banging on immediately. But what’s a software piano that can’t play itself? Use
synth.scorePlay() to play the default score provided for you. (And yes, you can always write your own scores!)
The blurb above and descriptions below include some
Safari: First, enable the Developer menu. Then, Develop → Show Error Console, or ⌥⌘C.
Firefox: Tools → Web Developer → Web Console, or ⌥⌘K.
Opera: View → Developer Tools → Opera Dragonfly, or ⌥⌘I, then click on the Console tab.