standalone libraries from Gibber to include in web pages
This library provides the graphics and audio capabilities of Gibber without the code editing environment.
You can simply download the repo and skip straight to the usage section if you don't need to modify the library. If you want to modify gibber.lib, here's how to build it:
npm installin the terminal.
gulp. This is a build module that is installed in step 2.
The build outputs a UMD file, gibber.lib.js, and a minified version.
The library can be used with plain script tags, CommonJS or AMD style includes. Below is an example HTML file that plays a simple drum beat, bass line, and random melody.
If you want to use CommonJS (node or browserify), just use the following to start things off (assuming you have the module installed):
Drums do not work because I haven't figured out resource management yet and
Drums uses audio samples. However,
EDrums (which uses synthesis) works fine.