M
Macario Ortega
Hi, i am trying to make a SuperCollider(http://www.audiosynth.com/)
client for ruby and I want it to be as close as using SCLang.
Both languages are very similar, although i find ruby more concise but
SCLang function object (equivalent to ruby proc) can give you an array
of the function's argument names which is the basis of the synth
creation process, so in SCLang you can do:
var func = { |arg1, arg2| arg1 + arg2 }
=> a Function
var def = func.def
=> a FunctionDef - closed
def.argumentNames
=> [arg1, arg2]
Is there any way of doing this with ruby?
client for ruby and I want it to be as close as using SCLang.
Both languages are very similar, although i find ruby more concise but
SCLang function object (equivalent to ruby proc) can give you an array
of the function's argument names which is the basis of the synth
creation process, so in SCLang you can do:
var func = { |arg1, arg2| arg1 + arg2 }
=> a Function
var def = func.def
=> a FunctionDef - closed
def.argumentNames
=> [arg1, arg2]
Is there any way of doing this with ruby?