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);
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.
best, a
--
--
Alberto de Campo
Bergstrasse 59/33
A-8020 Graz, Austria
e-mail : decampo@xxxxxx
--