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

Re: [Sc-devel] compiling synthDefs with dependence




Hi Julian, Alberto, James.

good idea in principle, but one problem: when building Synthdefs programmatically, you may have lots of "external" variables - this is nothing incorrect.

you can suggest your students to use closed functions normally, i.e.

SynthDef("\aaa", #{ arg out=0, bufnum=0;
	Out.ar(out,
		PlayBuf.ar(1, b.bufnum, 1)
	)
}).load(s);

That's a good idea. I will tell them this.

I agree it's not "incorrect", but other examples to be found a lot in beginners code
is stuff like 1.0.rand or if(a > b, {}), etc, insides synthDefs.

I guess the problem is not that of software design (server/language) but
how to teach it. Or a bit of both...?