[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] selfdestroying synth that destroys another synth stored in a variable
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] selfdestroying synth that destroys another synth stored in a variable
- From: Dan Stowell <danstowell+sc3@xxxxxxxxx>
- Date: Mon, 20 Sep 2010 20:57:24 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=5pThwNu4HfKRLGLCpik/caPQOKjskZ1YUNBL+nZSWvA=; b=DtIM4Xkt9jBJ8tfRdW0r85LXb1C6o0OHwiJYTVeHdismHBqjTJ+rLNIMxZn0ZnM8SQ AKvRq7ion4YRS/1KyNTOH0lXtYEHfZHAatd+9cx75LUl7FPUmi82r5Ehjtd6OLE2kb6h oyaLiUT6i0xOQp2KGQOS5MipKVda0Dlgpwi2I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=kmZ/XFFj8JTLID5jaz2j/UHNe6D44eDA0TvzPkiglU8mASkrHlmJ8LoiFoLis6UGUx eB5hmtF+YojRs979wo5MxUKbyYjBwW3OlWsUMRK1+9C5Xxf/VyzhuWZP7SrLvr96xsSL miR3/N8T0FG+Xu++v7K+W4Hfn119PlUgdRZKw=
- In-reply-to: <E135CE9D-22EC-4C16-B971-3894DD80292B@xxxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <AANLkTikW0pY0eEROdKG-TFf21=6c6AueU=3oys6xX3Jc@xxxxxxxxxxxxxx> <E135CE9D-22EC-4C16-B971-3894DD80292B@xxxxxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Yep I'd recommend what Batuhan suggests too.
I recently blogged about a related requirement, to use one synth to
pause/unpause another.
http://mcld.co.uk/blog/blog.php?308
Replace Pause.kr with Free.kr and you have yet another way to do it...
Dan
2010/9/20 Batuhan Bozkurt <batuhan@xxxxxxxxxxxxxxxxxx>:
> Create a group for each of your synth pairs and use doneAction: 14. This frees the enclosing group.
>
> See doneAction help for other types of behavior.
>
> Best,
> Batuhan Bozkurt
> /* http://www.earslap.com */
>
>
>
>
> On Sep 20, 2010, at 1:49 AM, ronni montoya wrote:
>
>> 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/
>
>
> _______________________________________________
> 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/
>
--
http://www.mcld.co.uk
_______________________________________________
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/