smplr

Get smplr

Usage no npm install needed!

<script type="module">
  import smplr from 'https://cdn.skypack.dev/smplr';
</script>

README

smplr npm

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