If someone out there is interested, I have found a workaround. Passing an ID in the OSC msg and parsing them. Not the same and not so handy, but it will work for me. Something like this: int ID; recv.event( "cc, i, f" ) @=> OscEvent @ ccValue; while( true ) { ccValue => now; while( ccValue.nextMsg() ) { ccValue.getInt() => ID; if(ID==8) { //etc Cheers, Lars El 25.11.2010, a las 18:11, lars ullrich escribió:
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!