[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] selfdestroying synth that destroys another synth stored in a variable
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] selfdestroying synth that destroys another synth stored in a variable
- From: ronni montoya <ronni.montoya@xxxxxxxxx>
- Date: Sun, 19 Sep 2010 15:49:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=sHPkzyeQrbNSbJKAeOS/Fjlt6DuVgrilX1gM3lwMtOs=; b=iKj/iACYas6URpJhMP4j/vckxp08XFBGomTw28c4ykT4FgCWmjJd0bAk+L2lWJ6RQ6 xc/gsBlLfwdx4pA0J0WxbRpVPk+MJ111no8cRhbSsOmh3oaBpgfcdsvMVxRKPggwtPav +AwB2V0h7xklILld02kHF//PdeZhacNMzUfyw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pwU9KC+3RYYsEppOXHXOk7Sip3G5oTxIMhnJhdraa2wdL7XNMFHQtUZSPs02EdfwJ7 WfDL8oE7E5hWuCDCW3tIyLi+YnR/L2jK4GYB0mzfYkHltQjsysGyvpTBDAskQEpFxCtd 9jUe1zq5e+1lQ/lrQ/OOIUPpHwh1tiYCISzgY=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hello dear list, im using task for sequencing behaivors , the task
have 2 nested "do", when the first do is called it creates a synth an
stores it in a variable, then when the second "do" is called it
create another synth that selfdestroys after a while. I want that when
my second synth selfdestroys also destroy the first synth stored in
the variable.
Any idea of how to do this?
here is the code
(
t = Task({
inf.do({
1.do {
arg i;
a = Synth(\sound_a );
(20.rand ).wait;
};
1.do {
arg i;
Synth(\sound_b ); //
-----------------------------------------------------> when this
selfdestroys, i want that also destroys variable a
};
(40.rand * 0.1 ).wait;
})
})
)
t.play
t.stop
THANKS!
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/