ChucK/foo.ck

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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( 20, 100 ) => std.mtof => s.freq;
    // advance time
    100::ms => now;
}