[chuck-users] dynamic string issue
lars ullrich
mail at larsullrich.de
Thu Nov 25 12:11:21 EST 2010
Dear list,
I need to set up eight OSC receivers for passing file paths. If it's possible, I don't want to repeat eight times the same structure.
So the idea is to do something like this:
" path " => string F1;
recv.event( "file1, s" ) @=> OscEvent @ sam1;
fun void receiveString(int i)
{
while( true )
{
sam+i => now;
while( sam+i.nextMsg())
{
sam+i.getString() => F+i;
}
}
}
for (0 => int i; i < 8; i++)
{
spork ~ receiveString(i);
}
This will not work, but maybe someone has an solution for this?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20101125/075a76b0/attachment.htm>
More information about the chuck-users
mailing list