Fast, JavaScript DSP library that creates JIT optimized audio callbacks using code generation techniques
Fast, JavaScript DSP library that creates JIT optimized audio callbacks using code generation techniques
Gibberish is designed to be a fast audio API for the browser. It takes the low-level building blocks provided by genish.js and uses them to create higher-level synthesizers, effects, and sequencers. Gibberish proceses each sample of each synthesis block one sample at a time, enabling a variety of effects not typically possible in JavaScript synthesis systems, most importantly single-sample feedback loops and audio-rate modulation of scheduling.
Note that this branch is for version 3 of the library. See the master branch for the pre-June 2017 version that is currently used in Gibber. There is also a tagged release of the older version (2.0.0).
https://www.charlie-roberts.com/gibberish/playground
kik = Kick().connect() // connects to master output by default
// sequence calls to 'trigger' method of kick drum every 1/2 second
// with alternating loudness levels.
seq = Sequencer.make( [.25,.5], [22050], kik, 'trigger' ).start()
chr = Chorus().connect()
syn = PolySynth({ maxVoices:4, attack:44, decay:22050, gain:.1 })
// connect to chorus and master output
syn.connect( chr ).connect()
syn.chord( [220,330,440,550] )
You need to have node.js and gulp installed. Then:
npm install in the top level directorygulp in the top level directorygulp minify if you'd like to create minified and gzipped versions of the library.The library will then be found in the dist folder.
Gibberish includes a long list of oscillators, fx, and synthesis algorithms.
All synths also have polyphonic versions.
Gibberish is licensed under the MIT license.
No open issues yet, or sync has not completed.