[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] iteration with iterator
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] iteration with iterator
- From: Chad McKinney <seppukuzombie@xxxxxxxxx>
- Date: Wed, 22 Sep 2010 16:39:14 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=j1m5C6kjAtWvlYBFn82OLnoecXC1OZT8+EqCHKz0vnE=; b=eXtaiSJMTE7zfaxotH/Wv3xfZt7E1lwzfpGWEGR0q7fVH0TPkeVV10UqwEUPdlvHXQ bpH7uduDzTcWCCs0tW691iItBT9y8pn+AOhdafdTswURqBCUQbhi20M/7UWRNjZkzGh9 Do4XSQ2hfUEn36PhWIg6NbuBR9Vt/JgYAPVYM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MwgDkrgYSPcTM6utaWN5D1Zndesyl58j9I6/qS5D7Xl/RVbijN5w+3OymV6JqA8ChH eAa1W9ZlS0baK/ZUuDn2ohf9BJEVQt/9haZ9p4NLp09qACTB71Rny1XC//Q+7Weqhvct P64Evc0GaVChMY4nXUjcseJbvWd3U3CIa1tQQ=
- In-reply-to: <AANLkTim0_u9LtgpPVaRkGaDLEZx6QQAtO1vaUaweL0=2@xxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <AANLkTim0_u9LtgpPVaRkGaDLEZx6QQAtO1vaUaweL0=2@xxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi Adam,
There is some assumption that happens with for loops in SC. Here's how
you would do it (seems gmail is wanting to screw with my formatting
use curly brackets in place of []):
for ( 0, 3, [ arg i; a[i].freq = d[i].x ] });
I've been using alot of java lately so this feels a bit too truncated,
but it works just the same.
best,
Chad
On Wed, Sep 22, 2010 at 4:30 PM, adam sanches <adam.sanches@xxxxxxxxx> wrote:
>
> Hello , i cant find a way to do this in supercollider:
>
>
> for(int = i; i < 3 ; i++) {
> a[i].freq = d[i].x ;
> }
>
>
> Can anybody point me how to do this?
>
>
> thanks
>
>
> Adam
_______________________________________________
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/