0.0.1 • Published 8 years ago
pcdrum-hat v0.0.1
PC Drum - Hats
Module for PC Drum
.
Install
npm install pcdrum-hat
Usage
var hat = require('pcdrum-hat'),
context = new AudioContext(),
ch = hat(context,
{freq: 7000,
attack: 0.001,
decay: 0.05,
sustain: 0,
release: 0.1
}),
oh = hat(context,
{freq: 10000,
attack: 0.001,
decay: 0.05,
sustain: 0,
release: 0.6
})
;
ch.trigger();
oh.trigger();
License
See LICENSE
0.0.1
8 years ago