[CM] clm-random error and "double-float"
Bill Schottstaedt
bil@ccrma.Stanford.EDU
Tue, 10 Jan 2006 15:24:45 -0800
There must be a way to make CLM's use of random compatible with CM's,
but I haven't taken time to look into it (I'm trying to get Snd 7.18 out the door).
The clm-random problem is one that I think is a bug in Lisp, but I have no
hopes anyone will agree: 1.0 is not a double float! The clm-random call
goes through the FFI (it's a C function for use in the run loop), and everything
there uses double floats. You have to say
(clm-random 1.0d0)
or
(clm-random (coerce 1.0 'double-float))
mus-random on the other hand is just a wrapper around Lisp's random.