This post is part of a series about Webaudiox.js. Check It Out
Last week we started talking about
we talked about the project and started to explain the helpers
This week we are gonna focus on
This helper provides you an easy way to use
with your Web Audio API games.
jsfx.js is a library to generate procedural sound, very 8-bit kindof sound. See jsfx demo page for details on this fun library by @egonelbre. It is useful because you can generate lots of different sound easily without downloading anything.
Show Don’t Tell
- webaudiox.jsfx.js the source itself.
- examples/jsfx.html [view source] : It shows a basic usage of this helper
- examples/jsfx-basic.html [view source] : It shows a basic usage of this helper
Show It Live
How To Use It ?
Let’s see how to use it. First you create a Audio Context like this.
1 2 3
Now we are all ready to play a sound! So let’s do that.
1 2 3 4
So now you can easily generate procedural 8bit sound for Web Audio API. jsfx.js is a very nice library with a retro theme that i love :) Somehow, it seems a bit strange to do retro sounds with a modern web audio api. So now you can play NES kind of sound with the dopler and localisation of the webaudio api. Go For it!
That’s all for today folks! Have Fun :)