[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] removing a array of OSCresponders



Hi,

i'm writing a code for comunicating processing with
SC.

I created an array of paths, and other array of OSCresponderNode;

I had success in the communication with this method,
but I still did not obtain to decide the problem for removing
those OSCresponderNodes:

(
var arrayFinger, arrayOSCfinger ;

//Array of Paths for fingers in Processing
arrayFinger = Array.fill(10, {arg i;
            var finalNode;
            i = i+1;
            finalNode = "/system/sound/"++(i-1);
            });
arrayFinger.postln;

//Array of OSCresponderNode for each finger in Processing
a = Array.fill(10,{arg i;
        i = i+1;
        OSCresponderNode(nil, arrayFinger[i-1], {arg time, resp, msg;
                msg.postln;
                });
            });
arrayOSCobjects.postln;

//Loop the Fingers
10.do ({arg i;
    a[i].add;
    });

)

I'm intented to remove those objects like this:

(
//REMOVING THE OBJECTS?????
//not instancied????
10.do ({arg i;
    a[i].remove;
    });
)

but how I can catch informations about a block of code to work in another block ?

sincerely

PS.: sorry for confusing english :P



Página pessoal:
http://gcravista.googlepages.com/guilhermemartinslunhanii