-
Notifications
You must be signed in to change notification settings - Fork 0
/
non-specific-server.ck
48 lines (39 loc) · 1.05 KB
/
non-specific-server.ck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// value of 8th
0.10::second => dur T;
// number of targets
1 => int targets;
// port
6449 => int port;
// send objects
OscSend xmit[targets];
// aim the transmitter at port
xmit[0].setHost ( "localhost", port );
// get pane
//AudicleGroove.pane() @=> AudiclePane @ pane;
int x;
int y;
int z;
0 => int W_OFFSET;
0 => int H_OFFSET;
8 => int WIDTH;
4 => int HEIGHT;
// infinite time loop
while( true )
{
for( H_OFFSET => y; y < H_OFFSET+HEIGHT; y++ )
for( W_OFFSET => x; x < W_OFFSET+WIDTH; x++ )
{
for( 0 => z; z < targets; z++ )
{
// start the message...
xmit[z].startMsg( "/plork/synch/clock", "i i" );
// a message is kicked as soon as it is complete
x => xmit[z].addInt; y => xmit[z].addInt;
xmit[z].startMsg( "/plork/synch/filter", "f f" );
Math.random2f(100, 500) => xmit[z].addFloat;
Math.random2f(0.5, 2) => xmit[z].addFloat;
}
// advance time
T => now;
}
}