really-hi-hat
v1.0.0
Published
a web audio hi-hat synth, inspired by [Synthesizing Hi-Hats with Web Audio by Joe Sullivan](http://joesul.li/van/synthesizing-hi-hats/)
Downloads
2
Readme
REALLY-HI-HAT
a web audio hi-hat synth, inspired by Synthesizing Hi-Hats with Web Audio by Joe Sullivan
USE IT
var rhh = require('really-hi-hat')(yrAudioContext) rhh.start(yrAudioContext.currentTime) rhh.update({peak: 0.5}) rhh.start(yrAudioContext.currentTime + 1)
settings for the update settings
settings: {
attack: 0.02,
decay: 0.03,
sustain: 0.000001,
release: 0.3,
peak: 0.7,
mid: 0.25,
end: 0.00001
}
DEVELOPMENT
npm install
npm run test # should pass! Yay!
HEAR THE MAGIC!
npm run serve
boot a webserver at port 3000npm run build
build demo.js to a bundle. Run this after making any changes to hear updates (or add watchify, i wanted to keep things "light")- open
http://localhost:3000/
in a web browser and hear the magic (hopefully)