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!