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

Re: [sc-users] iteration with iterator



pure functional way if they are the same size:

(a+++d).do{ |ar| ar[0].freq = ar[1].x };

but usually I do:

a.do{ |ob,i| ob.freq = d[i].x }

Indeed, using for a useless pain (why the hell should I have to remember or get the size of the array ???).

Miguel

A 2010/09/23, às 01:30, adam sanches escreveu:

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