// this is some old classes, I don't know if they work well.

// BundleNetAddr also came later, so perhaps it could be simplified and improved



// here only some tests:




// RecordAddr


a = RecordAddr("127.0.0.1", 57110);


s = Server(\test, a);

s.makeWindow.boot;


s.addr.start;

s.addr.score.score.postcs;



{ SinOsc.ar(500, 0, 0.1) }.play(s);

s.addr.score.postcs;


s.addr.score.recordNRT("test.osc", "testNRT.aif")



// RenderAddr (still fails, needs to load SynthDef library - how?)


a = RenderAddr("127.0.0.1", 57110);

s = Server(\test, a);

s.makeWindow.boot;


s.addr.start;

s.addr.score.score.postcs;


a.lifeTime = 3;

SynthDescLib.read;

Pbind(\server, s).play(a);



// Renderer


// could be used like this:



SynthDescLib.read;

(

a = Renderer(3.0); // render 3.0 seconds



Pbind(

\freq, 500,

\server, a 

).play(a); // seems to be still broken because of a change in the Event System since 2004.

)


a.score.score



(

Renderer.use({

{ SinOsc.ar(499) * 0.1 }.play;

}, 3).score

);


// error here still

(

Renderer.use {

Pbind(

\freq, Pseq([500, 300, 200], 2),

\dur, 0.1

).play;

}.score

)



(

a = Renderer(3);


Routine({

SynthDef("test", { arg freq; Out.ar(0, SinOsc.ar(freq, 0, 0.1)) }).send(a);

0.5.wait;

a.sendMsg("/s_new", "test", 1889);

0.3.wait;

a.sendMsg("/c_set", 0, 700);

0.2.wait;

a.sendMsg("/n_map", 1889, \freq, 0);

0.1.wait;

a.sendMsg("/c_set", 0, 500);

1.wait;

a.sendMsg("/n_free", 1889);


}).play(a);

)

a.score.score.postcs;

a.score.recordNRT("test.osc", "testNRT.aif")