1.1.0 • Published 7 years ago

audio-worker-compiler v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

AudioWorkerCompiler

Build Status NPM Version License

Installation

$ npm install audio-worker-compiler

Command Line

You may also use this from the command line:

audio-worker-compiler bitcrusher.js > bitcrusher-compiled.js

API

AudioWorkerCompiler

  • compile(code: string): string

Example

onaudioprocess = function(e) {
  e.outputs[0][0].set(e.inputs[0][0]);
};

compiled

self.onaudioprocess = function(e) {
  e.outputs[0][0].set(e.inputs[0][0]);
};

License

MIT