Hi list
When teaching SC I frequently stumble into the problem that people
find it hard to grasp the distinction between server and language. It is not
just a matter of telling them once, but one has to do so repeatedly until
it becomes 2nd nature.
I see this very often, even when the difference has been explained:
b = Buffer.read(s,"sounds/a11wlk01.wav");
SynthDef("\aaa", { arg out=0, bufnum=0;
Out.ar(out,
PlayBuf.ar(1, b.bufnum, 1)
)
}).load(s);
Synth(\aaa, [\bufnum, b])
It works fine, but not when var b has become something else or
contains a stereo buf
or they want to pass "c" as a buffer.
So I'm wondering if when compiling the synthDef, it would be possible to have
the compiler throw a warning, such as:
WARNING: your synthDef is dependent upon an external variable.
Or something similar.
Just an idea. Is it hard to implement?