Tick

method tick(dur rate) executes the following code in ChucK: // define function fun void foo {    while( true ) {        now => time lastTick; bar; now - lastTick => dur span; rate - span => now; } }

fun void bar{ Methods called in tick's heart }

spork ~ foo;

while( true ) rate => now;