webaudio sound effects
npm install wafxrwafxr is a sound effect generator in the tradition of
as3fxr,
bfxr,
jfxr, and others.
But where such tools normally generate static files,
this one plays sounds dynamically via Web Audio.
Supports oscillators, FM synth, tremolo/vibrato, and various other
filters and effects. If you need more complicated sounds
(and you're comfortable building audio graphs),
check out wasgen instead.
Open the demo and
twiddle the UI until you have a sound you like.
Then copy the playback code into your project,
add wasgen as a dependency,
and off you go.
``shell`
npm install --save wasgen
`js``
import Gen from 'wasgen'
var gen = new Gen()
gen.play([
/ .. sound program from the demo page .. /
], 440, 1, gen.now(), gen.now() + 0.1)
----
Made with 🍺 by andy.
License is ISC.