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

Re: [sc-dev] bug: PlayBuf-addToSynth



hi,
if you look in the plugin src. you will see that
PlayBuf is defined but does not have the
LOOP(...) function which renders a slice of audio.
so i would guess every class that has not this function does not work yet.
i could write/play buffers with BufDelayL.
jan


felix@xxxxxxxxxxxxxxxxxxx heeft op woensdag 26 juni 2002 om 19:59 het volgende geschreven:

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

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev