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

Re: [Sc-devel] compiling synthDefs with dependence



At 7:48 -0500 11/27/07, James Harkins wrote:
On Nov 27, 2007, at 7:10 AM, Julian Rohrhuber wrote:

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);

The example SynthDef should actually read

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

yes, the idea was to demonstrate the error..


then there is no external reference.
I think students should learn that this is ok to use for
throwaway examples, but not in things they use for longer.

with synthdefs I wouldn't really do this, because it is confusing - we do have already arguments, why not using them..
--





.