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

Re: [sc-users] iteration with iterator



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/