Tick
From Scratchpad
method tick(dur rate) executes the following code in ChucK:
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;
}
[edit] Defaults
1::second => rate;
[edit] Example
//<3 Beat
<body3
<tick3
^beep;
</3
^tick;
</3
