Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created July 10, 2016 22:34
Show Gist options
  • Select an option

  • Save mohayonao/e92b3f82675e0a76e1e783c80473afbc to your computer and use it in GitHub Desktop.

Select an option

Save mohayonao/e92b3f82675e0a76e1e783c80473afbc to your computer and use it in GitHub Desktop.
"use strict";
const test = require("eater/runner").test;
const assert = require("assert");
const scsynth = require("../../src");
const context = new scsynth.SCContext();
// test("aa", () => {
const synthdef = {
"name": "aa",
consts: [ 2, 3 ],
paramValues: {},
paramIndices: {},
specs: [
[ "DC" , 2, 0, [ [ -1, 0 ] ], [ 2 ] ],
[ "DC" , 2, 0, [ [ -1, 1 ] ], [ 2 ] ],
[ "BinaryOpUGen", 2, 0, [ [ 0, 0 ], [ 1, 0 ] ], [ 2 ] ],
[ "Out" , 2, 0, [ [ 2, 0 ] ], [ ] ]
]
};
const synth = context.createSynth(synthdef);
context.addToTail(synth);
context.process();
console.log(context.outputs[0])
// });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment