[CM] bug with #'signum in run
Anders Vinjar
andersvi at extern.uio.no
Fri Sep 24 04:49:40 PDT 2004
The example was made up a bit to quick im afraid :-) - just for
illustration.
>>> "BS" == Bill Schottstaedt <bil at ccrma.Stanford.EDU> writes:
(signum samp) returns 0.0 for values between -1.0 and 1.0
inside run-loop
(clm-print "~A" (signum (* amp (- (random 1.0) 1.0)))))))
I forgot to support float args in signum in the CLM run macro.
(Also, your code will always return a negative number -- perhaps
you want (- (random 1.0) 0.5)?)
More information about the Cmdist
mailing list