Hi there, I am puzzled as to why these work (both creating a 2-channel NodeProxy):
Ndef(\test, { SinOsc.ar([440,442], 0, 0.2) })
Ndef(\test, { SinOsc.ar([440,442], [0, 0], 0.2) })
But if you put an array in the mul
argument, it doesn’t work:
Ndef(\test, { SinOsc.ar([440,442], 0, [0.2, 0]) })
// ^^ The preceding error dump is for ERROR: Out input at index 2 ( 0.0 ) is not audio rate
It does work if you explicitly set a UGen array:
Ndef(\test, { SinOsc.ar([440,442], 0, DC.ar([0.2, 0])) })
It also works fine if you don’t use NodeProxy and just call play
on the function (i.e. creating a SynthDef).
I guess it must be related to the face that the following returns a non-UGen…?
SinOsc.ar([440,442], 0, [0.2, 0])
// -> [ a BinaryOpUGen, 0.0 ]