[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] bug: PlayBuf-addToSynth
a little afternoons hacking by
-julian and felix
SynthDef("sampleLoadTest",{
var p;
p = PlayBuf.ar(2,0);
//p = SinOsc.ar;
Out.ar(0,p);
}).writeDefFile;
causes unexpected quit. well actually we were expecting it but...
a little documentation:
when the SynthDef is being built, each ugen in the graph is added to it:
//the UGen classvar buildSynthDef is the
// currently being built synth def
// the ugen graph is sorted, then it goes through each ugen in call
order and
eachUgen.addToSynth
// gets added to the synthDef
so there, when PlayBuf adds itself, there is the bug.
(
s = Server.default;
s.sendMsg("/b_allocRead", 0, "/Applications (Mac OS
9)/SC/Sounds/afritekno/PUguittones ", 0, 44100);
SynthDef("sampleLoadTest",{
var p;
p = PlayBuf.ar(2,0);
// p = ReadBuf.ar(2,0);
//p = SinOsc.ar;
Out.ar(0,p);
}).writeDefFile;
s.sendMsg("/d_load", "engine/synthdefs/sampleLoadTest.scsyndef");
s.sendMsg("/s_new", "sampleLoadTest", 1000, 0);
)
____________________
http://crucial-systems.com