snare-synth

snare drum for baudio

Usage no npm install needed!

<script type="module">
  import snareSynth from 'https://cdn.skypack.dev/snare-synth';
</script>

README

snare-synth

snare drum for baudio

Here's what it sounds like.

example

var snare = require('snare-synth');
var d = snare();

return function (t) {
  return d(t % (1/2));
};

Play it with baudio:

$ baudio example/snare.js

methods

var snare = require('snare-synth')

var d = snare()

Return a function d(t) that plays a snare once when t is small.

install

With npm do:

npm install snare-synth

license

MIT