spencersalazar / chuck

28 stars 8 forks source link

now returns 0.0 from Chugen #28

Open heuermh opened 10 years ago

heuermh commented 10 years ago

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)