examples\basic\step.ck
// step gen to dac
Step s => dac;
.5 => float v;

// infinite time-loop
while( 1 )
{
    // advance time
    1::ms => now;
    // set value
    v => s.next;
    -v => v;
}
home .. language .. program .. examples