concept tune in category javascript

appears as: tunes
JavaScript on Things: Hacking hardware for web developers

This is an excerpt from Manning's book JavaScript on Things: Hacking hardware for web developers.

Johnny-Five’s Piezo class gives you some handy tools to make piezos play tunes, handling the complex timing and frequency conversions. Notes are exposed by their names (such as 'e5') so you don’t have to memorize frequencies. You can pass an object representing a “tune” to the play method, with properties such as tempo (BPM) and a song (array of notes and their durations).