Combining stuff from the super awesome Synthesising Drum Sounds with the Web Audio API and Synthesizing Hi-Hats with Web Audio to give you a little drum module.
npm i drummer
const drummer = require('..')()const kick = drummer.kickconst snare = drummer.snareconst hihat = drummer.hihat kick.hit(0)hihat.hit(0)hihat.hit(0.25) kick.hit(0.5)snare.hit(0.5)hihat.hit(0.5)
Combine open-source packages with your private code and publish to a private registry behind the firewall. npm ♥ enterprise developers
how? learn more