I need a help with syntax of iteration using .do ;
I have this function:
(
{var freq;
freq = [[660, 880], [440, 660], [1320, 880],[220,660]].choose;
SinOsc.ar(freq, 0, 0.1);
}.play;
)
I try to iterate over it so in each iteration I will get a different array of frequencies and also will hear is output.
I try something like this without a success:
(
10.do({arg i;
[[660, 880], [440, 660], [1320, 880],[220,660]].choose;
{SinOsc.ar(i,0,0.1);
}.play;
};
)
)
Thank you for any help!