[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] removing a array of OSCresponders
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] removing a array of OSCresponders
- From: Guilherme Lunhani <gcravista@xxxxxxxxx>
- Date: Thu, 23 Jul 2009 14:29:48 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=u6T8LlrFp1Wt2YKzZ9JALx7L4KfrJEwq/NyOxoKo6So=; b=xYeVcJyu8vNXUYam6C8sK7WLmAOQzfw6Y9DOUqiVTh0D4be0k06uYx+KqvIxNR6vO4 Fq6z/f6hmnEFzwTg5wZNXNoafWwl+VcdxShiOtuH0RMIbufSGlobAJB766yLX8h1ks3q 6WRccAJdTbq84QAHaKAJxWTTn0uCbK5t0WpE4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=cduLk4jqmge+Vl+dyofo509DgE46OHxyUr+PDoiAfsDmhiQ68gRaLIDeUVEsOou0HI /P3jvx5kBe3bHq3jlb8D4BZkZZTPi0tboS/Uh+k7Zf3yJYsJTuKPOIDX1XC9cvegdl6q Gt91eoXeULP5KFLv/CFfalW4SzmrChvsccBRk=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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