README
smplr
A web audio sampler:
var ac = new AudioContext()
var sampler = require('smplr')(ac)
sampler.load('@drum-machines/maestro').then(function (maestro) {
var now = ac.currentTime
maestro('kick').start(now)
maestro('snare').start(now + 0.2)
})
Install
Via npm: npm i --save smplr
or grab the browser ready file (4kb) which exports loader
as window globals.
User guide
License
MIT License