SndBuf s => dac; "special:dope" => s.read; <<< s.length(), s.samples() >>>; // Osc Recv info OscRecv recv; 6600 => recv.port; recv.listen(); recv.event( "/draw, f f" ) @=> OscEvent changeHomer; 0 => int newMsg; 0 => float xCoord; 0 => float yCoord; spork ~ oscRecv1(); while (1) { if (newMsg) { (s.samples() * xCoord / 400.0) $ int => s.pos; 2.0 * (yCoord - 200.0) / 400.0 => s.rate; 0 => newMsg; } (1.0 / 25.0) :: second => now; } fun void oscRecv1() { while (true) { changeHomer => now; // wait for event to arrive 1 => newMsg; while ( changeHomer.nextMsg() != 0 ) { // get next message changeHomer.getFloat() => xCoord; changeHomer.getFloat() => yCoord; <<< xCoord, yCoord >>>; } } }