node package manager

drummer

Drum synth

drummer

Drum synth

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.kick
const snare = drummer.snare
const 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)