This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
drone-e-o-synth with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
WEB AUDIO SYNTH MODULEZZZ https://www.npmjs.com/package/drone-e-o-synth
An experiment in using NPM for building modular noise instruments.
Each instrument is an object filled with already-connected and setup audioNodes. The instrument responds to:
From there, writing a module that auto-magically builds UI for each of the nodes shouldn't be too hard.
npm install drone-e-o-synth
var makeSynth = require('drone-e-o-synth') var context = new (window.AudioContext || window.webkitAudioContext)() var synth = makeSynth(context) // synth is an object filled with audio nodes that are already connected together! synth.connect(context.destination) // connect yr synth to the audio context destination, or to other nodes synth.keys() => ['source', 'filter', lowFilter', 'distortion', 'volume'] // returns a list of keys to audio nodes, so you can do stuff like synth.source.type = "triangle" var data = synth.export() => exports the current state of the audio nodes to a json object synth.import(data) => resets state of audio nodes from JSON object
# install dependencies npm install # start watchify npm run watch # start local server python -m SimpleHTTPServer