[CM] new cm-2.4.0.tar

Rick Taube taube@uiuc.edu
Thu, 5 Dec 2002 15:32:36 -0600


ive updated 2.4.0 on the ccrma server

ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/sources/cm-2.4.0.tar.gz

this tarfile fixes some old bugs and adds some new ones:

  the :reflect mode for 'drunk' now refects within both bounds
  args you specify to 'events' are now passed to the hook 
  fixed printing bug in 'markov-analyze'
  
new stuff:

  new :avoid arg to 'drunk' avoids that number when the increment is selected

  new :stop value for drunk's :mode arg causes it to return false instead
  of a value if the bounds are exceeded

  markov pattern now allows subpatterns and other things to be returned in
  the chain.  values normally returned from the transition rules can be 
  "overridden" using the new :produce option.
  the value of :produce should be a list  (<id> <value> ...)
  which causes the pattern to return (next <value>) instead of <id>.
  for example this returns a subpattern whenever 2 is produced
  
> (define x
    (new markov :of '((1 -> 1 2 3)
                      (2 -> 3)
                      (3 -> 1 2))
         :produce (list 2 (new cycle :of '(a b c)))))

> (next x 34)

(1 3 A B C 3 1 A B C 3 A B C 3 A B C 3 1 A B C 3 A B C 3 A B C 3 1 3)