[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] array dynamically in synthdef



On Tue, Jul 28, 2009 at 10:48 AM, James Harkins <jamshark70@xxxxxxxxx> wrote:
...an array given as an argument default must be a literal array.

One point of clarification: that's for a SynthDef function. Ordinary functions can use calculated values (not just arrays) as arg defaults.

f = { | x({ 10.rand } ! 4), y(Main.elapsedTime) |
    x + y
};

f.value;

hjh


--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman