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)
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more