[Sc-devel] Embedding Specs in SynthDefs
James Harkins
jamshark70 at gmail.com
Wed Jul 25 17:54:02 PDT 2007
On 7/25/07, Julian Rohrhuber <rohrhuber at uni-hamburg.de> wrote:
> I see that this is the case if you combine instruments. In the case
> of isolated Instrs this wouldn't be the case as far as I can see?
No, isolated Instrs behave this way too.
Instr("demo", { |freq, env|
SinOsc.ar(freq) * EnvGen.kr(env, doneAction: 2)
}, [\freq, EnvSpec(Env.perc(0.01, 0.2))]);
d = Instr("demo").asSynthDef;
e = Instr("demo").asSynthDef([nil, Env.linen(0.5, 2.0, 1.8)]);
The resulting InstrSynthDefs should have different names.
hjh
--
James Harkins /// dewdrop world
jamshark70 at dewdrop-world.net
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
More information about the Sc-devel
mailing list