[chuck-users] LiSa .rate() issue (bug)

dan trueman dtrueman at Princeton.EDU
Sat Nov 8 22:17:31 EST 2008


a mystery to me as well!

dan

On Nov 8, 2008, at 7:46 PM, Kassen wrote:

> Dear list (especially Dan),
>
> I just spend a hour or so pulling my hair out wondering why my  
> little toy turntable wouldn't "scratch" anymore. It turns out that  
> the issue is some changed behaviour in LiSa's .rate(). I  
> believe .rate() no longer automatically casts integers to floats  
> while previously it did. The following example demonstrates the issue;
>
> //============8<=================
> LiSa l => dac;
> second => l.duration;
>
> //just making sure
> <<<l.rate(), "     default rate">>>;
>
> //note this is a integer
> -1 => l.rate;
> <<<l.rate(), "     should be -1 but isn't">>>;
>
> -1.0 => l.rate;
> <<<l.rate(), "    should be -1">>>;
> //============8<=================
>
> I'm not sure how this can happen as casting integers to floats is  
> supposed to be automatic in ChucK. If somebody could please look  
> into this?
>
> Yours,
> Kas.
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



More information about the chuck-users mailing list