Yep, I just showed the original code to Ge, and he verified that you are only using one sineosc (s1), but connecting it multiple times to the dac, through the array. So the clicking begins when the multiple connections to the dac finally take up enough time. Mine clicks at about 450 on my PowerBook. The true test is in my code, where there are truly multiple sineoscs, and multiple connections. That clicks at about 40. Be interested in seeing where it clicks on IntelMac. PRC On Tue, 2 May 2006, Perry R Cook wrote:
Could you try this code and let us know when you get clicks?:
1024 => int max; sinosc a[max]; 0 => int counter; sinosc s1; 1./30.0 => s1.gain; int i;
while( true ) { for (0=>i; i<=counter; i++) { 1./(counter+1) => a[i].gain; } 440.0 + std.rand2f(-100.0,100.0) => a[counter].freq; a[counter] => dac; .25::second => now; <<<"oscillator ", counter++>>>; }
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users