[chuck-users] LiSa .rate() issue (bug)
Kassen
signal.automatique at gmail.com
Sat Nov 8 19:46:56 EST 2008
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20081109/8d19d813/attachment.html>
More information about the chuck-users
mailing list