clappy
v3.0.0
Published
A web audio module for synthesizing claps
Downloads
8
Readme
##Usage
npm install --save clappy
var Clappy = require('clappy');
// Initialize AudioContext
var context = new AudioContext();
// Initialize clap instrument
var clap = Clappy(context);
// Create clap audio node (one time use only)
var clapNode = clap();
// Connect to target node
clapNode.connect(context.destination);
// Start
clapNode.start(context.currentTime);