Skip to content

Instantly share code, notes, and snippets.

@mohayonao
Created August 31, 2016 06:12
Show Gist options
  • Save mohayonao/f6b42ff1cc2821fcdacffdcfccc7fba3 to your computer and use it in GitHub Desktop.
Save mohayonao/f6b42ff1cc2821fcdacffdcfccc7fba3 to your computer and use it in GitHub Desktop.
const synthdef = require("synthdef");
const def1 = synthdef(($) => {
let s;
s = $("SinOsc").ar(220, 0, 0.5);
s = $("Out").ar(0, s);
return s;
});
const def2 = synthdef(($) => {
let s;
s = $("SinOsc.ar", 220, 0, 0.5);
s = $("Out.ar", 0, s);
return s;
});
const def3 = synthdef(($) => {
let s;
s = $("SinOsc.ar(220, 0, 0.5)");
s = $("Out.ar(0, {0})", s);
return s;
});
const expecred = {
"name": "temp__1",
"consts": [ 220, 0, 0.5 ],
"paramValues": [],
"paramIndices": {},
"units": [
[ "SinOsc" , 2, 0, [ [ -1, 0 ], [ -1, 1 ] ], [ 2 ] ],
[ "BinaryOpUGen", 2, 1, [ [ 0, 0 ], [ -1, 2 ] ], [ 2 ] ],
[ "Out" , 2, 0, [ [ -1, 1 ], [ 1, 0 ] ], [ 2 ] ]
],
"varitants": {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment