[chuck-dev] osc bug & example flaw

joerg piringer joerg at piringer.net
Fri Apr 21 16:22:25 EDT 2006


i don't know if this is the right place to file a bug report, but i 
didn't find a better place.
first there's a flaw in the OSC examples:
instead of recv.event( "/foo/notes, i f" ) @=> OscEvent oe;
it should be: recv.event( "/foo/notes", "i f" ) @=> OscEvent oe;

secondly i can reproduce a crash of chuck while using OSC with 
reactivision (http://www.iua.upf.es/mtg/reactable/?software).
if you uncomment the last comment below and then receive an osc-event 
chuck crashes.
system: winXP, SP2, pentium M, 512MB

hope this helps, chuck is great fun with reactivision...

best joerg

----
crash script:

sinosc si => JCRev r => dac;
.1 => r.mix;

OscRecv recv;
3333 => recv.port;
recv.listen();

recv.event( "/tuio/2Dobj","s i i f f f f f f f f" ) @=> OscEvent oe;

string str;
int s;
int i;
float x;
float y;

// infinite event loop
while ( true )
{
     // wait for event to arrive
     oe => now;

     // grab the next message from the queue.
     while ( oe.nextMsg() != 0 )
     {
         oe.getString() @=> str;
	oe.getInt() => s;
	oe.getInt() => i;
	oe.getFloat() => x => si.gain;
	oe.getFloat() => y;
	y * 1000 => si.freq;
	<<< str, s, i, x, y >>>;
	// UNCOMMENT NEXT LINE TO CRASH CHUCK:
         //<<< oe.getString() >>>;
     }
}

-- 
http://joerg.piringer.net
http://www.transacoustic-research.com
http://www.iftaf.org
http://www.vegetableorchestra.org/


More information about the chuck-dev mailing list