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.
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);
}