Created
August 31, 2016 06:12
-
-
Save mohayonao/f6b42ff1cc2821fcdacffdcfccc7fba3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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