[chuck-users] benchmarking chuck

Perry R Cook prc at CS.Princeton.EDU
Tue May 2 16:09:29 EDT 2006


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++>>>;
}





More information about the chuck-users mailing list