3.0.0 • Published 9 years ago

hi-hat v3.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

##Usage

npm install --save hi-hat

var HiHat = require('hi-hat');

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

// Initialize instrument
var hat = HiHat(context);

// Create hat audio node (one time use only)
var closedHatNode = hat(); // Closed hat
var openHatNode = hat(true); // Open hat

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

// Start
closedHatNode.start(context.currentTime);
3.0.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago