chuck
chuck copied to clipboard
now returns 0.0 from Chugen
Even after time has advanced now
returns 0.0
when called within the tick(float)
method inside a class which extends Chugen
.
For example:
class WhatTimeIsIt extends Chugen
{
fun float tick(float in)
{
<<<"what time is it?", now>>>;
}
}
WhatTimeIsIt what => blackhole;
<<<"before", now>>>;
1::samp => now;
<<<"after", now>>>;
1::samp => now;
<<<"done">>>;
displays
$ chuck whatTimeIsIt.ck
before 0.000000
what time is it? 0.000000
after 1.000000
what time is it? 0.000000
"done" : (string)
Migrated from https://github.com/spencersalazar/chuck/issues/28