ChucK/foo.ck

From CSWiki
Revision as of 17:53, 21 February 2006 by Gewang (talk | contribs)

Jump to: navigation, search

This is an example of an example program.

// hi i am an example program
sinosc s => dac;
.5 => s.gain;

// infinite time loop
while( true )
{
    // choose freq
    std.rand2f( 40, 100 ) => std.mtof => s.freq;
    // advance time
    100::ms => now;
}