[CM] looking for documentation for beginner

Michael Mossey mpm@alumni.caltech.edu
Mon, 5 Apr 2004 10:07:34 -0700


Hi, thanks Rick.

Another question:  a class like heap is documented in the dictionary.  There
it gives a list of slots, and it mentions only :state.  Then in the example
code, it uses :notes.  So I feel like I'm missing something.  What all slots
does heap use, or any of the pattern classes for that matter?  Are they all
inherited from a superclass?  Where is the superclass documented?

Where could I find general documentation on the object system that Common
Music uses?  The Common Lisp documentation I've found doesn't seem to
directly apply, and it's a technical spec anyway.  Should I look up Scheme
documentation for objects?  Where could I find an introduction that uses
examples (rather than defining the language in abstract terms)?

Regards,
Mike


----- Original Message -----
From: "Rick Taube" <taube@uiuc.edu>
To: "Michael Mossey" <mpm@alumni.caltech.edu>
Cc: "CMdist Mail" <cmdist@ccrma.Stanford.EDU>
Sent: Monday, April 05, 2004 9:46 AM
Subject: Re: [CM] looking for documentation for beginner


> CM runs in scheme (Guile) and Common Lisp. When you build CM in Common
> Lisp it defines  common scheme operators so that you can write musical
> programs that will run in any port of CM, regardless of what Lisp
> implementation you happen to be using that day. Of course, I could have
> defined Common Lisp operators in scheme but I chose the reverse becuase
> (in my opinion...) Scheme's names are more consistent and easier to
> learn and teach.
>
> New is documented here:
>
> http://commonmusic.sourceforge.net/doc/dict/index.html
>
> it does appear that :of is missing from the dictionary and Ill fix that
> in the next release , sorry!
>   :of is a keyword argument for patterns, its the argument that
> introduces the data to put in the pattern:
>
> (new cycle :of '(a b c d e))
> (new heap :of '(a b c d e))
>
> > Hi, I'm new to CM.  For documentation, I've found the Common Music
> > Dictionary, and a couple online references to Common Lisp.  I'm still
> > confused on a lot of points.  The example CM code uses "define",
> > "new", and
> > passes a lot of arguments via :of.  None of these are explained in
> > either
> > the Common Music Dictionary or the Common Lisp sources. They seem to be
> > idioms specific to CM, but where are they documented?
> >
> > Second question: does CLM work under the combination CLISP/Win XP?
> >
> > Regards,
> > Mike
> >
> >
> > _______________________________________________
> > Cmdist mailing list
> > Cmdist@ccrma.stanford.edu
> > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
>
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist