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

Re: [sc-users] Instr / Patch / FxPatch - args ?



Great, thanks.

I'd really like this feature, it's a bit less efficient maybe but worth it I think.

Best, Hjalte

2009/6/19 James Harkins <jamshark70@xxxxxxxxx>
Unfortunately I don't have an answer to this.

I recall this being discussed and maybe my memory is faulty, but I thought it was changed so that numbers in patch argument lists would be control-rate and inherit the spec from the Instr. I can't find evidence of that change in svn, though, so I might be mistaken.

Including felix to clarify.
hjh


On Jun 18, 2009, at 6:59 AM, Hjalte Møller wrote:

Hello list,

When spawning a new Patch from an Instr the arguments gets hardcoded.
Id like to set new initial values for the KrNumberEditors at compiletime.
I know I can pass KrNumberEditor objects into the arg array, but the problem with this is, that I have to supply the ControlSpecs again which makes the code clumpsy...

Is there any shortcuts to this ?

example :

Instr(#[\filters, \rlpf], { |bus, numChan, freq, rq = 0.4, xfade = 1, gate = 1|
    var sig, new;
    sig = In.ar(bus, numChan);
    new = RLPF.ar(sig, freq, rq);
    xfade = Linen.kr(gate, 1, 1, 1, 2) * xfade;
    XFade2.ar(sig, new, xfade.madd(2, -1))
}, [\audiobus, ObjectSpec(1), \freq, [1, 0.05], nil, [0,1] ]);


FxPatch([\filters, \rlpf], [nil, 2, 880, 0.7, 0.5]); // theese gets hard coded...

FxPatch([\filters, \rlpf], [nil, 2, KrNumberEditor(880, \freq), 0.7, 0.5]); // The spec is needed again...


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

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