1.1.0 • Published 9 years ago

rim-shot v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

##Usage

npm install --save-dev rim-shot

var RimShot = require('rim-shot');

// Initialize AudioContext
var context = new AudioContext();

var rimShot = RimShot(context);

// Create audio node (one time use only)
var rimShotNode = rimShot();

// Connect to target node
rimShotNode.connect(context.destination);

// Start
rimShotNode.start(context.currentTime);