asynth
create midi synths with javascript functions
example
var asynth = ;var s =;s;
Now plug in a USB keyboard and it will sound like an organ.
methods
var asynth =
var b = asynth(synth)
Create a new synth out of a synth(note, t)
function.
note.key
is the number of the key pressed on the synth.
There are some other properties like timestamps for up
, down
, and start
events that you might also want to care about.
Return a baudio instance.
install
With npm do:
npm install asynth
license
MIT