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

Re: [sc-users] iteration with iterator



for( 0, 2, { arg i; a[i].set(\freq , d[i].x) });


cheers

2010/9/22 James Harkins <jamshark70@xxxxxxxxx>:
> On Thu, Sep 23, 2010 at 7:46 AM, e deleflie <edeleflie@xxxxxxxxx> wrote:
>>
>> or ..
>>
>> (0..3).do {  arg i;
>>    a[i].freq = d[i].x ;
>>  }
>
>
> If your start value is 0, you can write simply 3.do { ... }, or if that
> feels strange to write,
>
> do(3) { ... }
>
> SC is not Java/C. ;)
> hjh
>
>
> --
> James Harkins /// dewdrop world
> jamshark70@xxxxxxxxxxxxxxxxx
> http://www.dewdrop-world.net
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal."  -- Whitman
>
> blog: http://www.dewdrop-world.net/words
> audio clips: http://www.dewdrop-world.net/audio
> more audio: http://soundcloud.com/dewdrop_world/tracks
>

_______________________________________________
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/