Spencer Salazarfix for osc pt 258e4bac10 years agoHistory
39 lines · 606 B · Text
RawDownload
 OscIn oin;OscMsg msg; 12003 => int OSC_PORT; OSC_PORT => oin.port;oin.addAddress( "/test, ifs" ); spork ~ send(); oin => now; oin.recv(msg); if(msg.getInt(0) == 42 && Math.fabs(msg.getFloat(1) - 3.141) < 0.001 && msg.getString(2) == "hello!")    <<< "success" >>>;else    <<< "failure" >>>; fun void send(){    1::samp => now;        while(true)    {        OscOut xmit;        xmit.dest( "localhost", OSC_PORT );        xmit.start( "/test" );        xmit.add(42);        xmit.add(3.141);        xmit.add("hello!");        xmit.send();                1::second => now;    }}  

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t