Experiments in WebAudio
Note: much of this code inspired by:
- Visit malformed.ca.
- From the switch on the top right, switch the patch into
editmode (or, press
- Right-click to add modules
- Toggle to
playmode to adjust parameters, etc.
This demo presumes an existant knowledge of modular synthesis. For example, how to generate a note by modulating the amplitude of an oscillator with an envelope generator.
- While in
editmode, right-click and create a
- Next, right-click and create a
VCO(voltage-controlled oscillator) component
- Connect the
freqoutput of the
freqinput of the
- Create an
Envcomponent; connect the
veloutput of the
velinput of the
- Create a
VCAcomponent; connect the outputs from both the
Envto its inputs
- Connect the outputs of the
out-2("master outs") in the bottom left corner
- Switch to
playmode and turn on the patch (bottom right). You can trigger notes using
ASDFGon your keyboard*
* or you can use MIDI or even OSC :)
All patch data is, by default, stored in LocalStorage. However, if you wish to persist data from multiple patches and parameter sets, you may can create an account / sign in by clicking the glowing ring in the top right. I use
Firebase to store patch data in JSON format (note: you'll need third party cookies enabled).