[CM] Cmdist Digest, Vol 62, Issue 3

James Hearon j_hearon at hotmail.com
Tue Jun 25 18:26:29 PDT 2013


Hi,
This is very helpful.
I did as the course 220a blog description suggested and created a directory with symlink to clm-4 inside it, then copied v.ins from clm-4 to that directory.

I'm running emacs from that directory and saved an .emacs file in there too, which looks like this:

;;slime
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/slime")
(require 'slime)
(slime-setup)
(add-to-list 'auto-mode-alist '("\\.ins$" . lisp-mode))

...so M-x works and slime is loading from emacs.

(compile-file "v.ins") works in slime-repl sbcl, and I get a v.fasl etc.

but

(load "v") bumps me out to the debugger, and this is where I'm stuck with clm since the blog description is about cm, not clm.  I also looked at the readme.clm.  Not sure about the .ins-buffer part you described, below.

Just not sure what I'm missing to get thru (load "v"), and on to (with sound ()...).  Perhaps I should be running emacs directly from the clm-4 source folder?

Regards,
Jim Hearon


> From: cmdist-request at ccrma.Stanford.EDU
> Subject: Cmdist Digest, Vol 62, Issue 3
> To: cmdist at ccrma.Stanford.EDU
> Date: Tue, 25 Jun 2013 12:00:03 -0700
> 
> Send Cmdist mailing list submissions to
> 	cmdist at ccrma.stanford.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> or, via email, send a message with subject or body 'help' to
> 	cmdist-request at ccrma.stanford.edu
> 
> You can reach the person managing the list at
> 	cmdist-owner at ccrma.stanford.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cmdist digest..."
> 
> 
> Today's Topics:
> 
>    1. clm, slime (James Hearon)
>    2. Re: clm, slime (andersvi at notam02.no)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 25 Jun 2013 01:33:32 +0000
> From: James Hearon <j_hearon at hotmail.com>
> Subject: [CM] clm, slime
> To: "cmdist at ccrma.Stanford.EDU" <cmdist at ccrma.Stanford.EDU>
> Message-ID: <BLU168-W1033F86143A00351545FF08E58B0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
> Getting myself confused trying to interact with clm (clm-4) using emacs and slime.
> 
> I have f18, sbcl, clm-4 and was doing fine from command line with:
> 
> (load "all.lisp")
> (compile-file "v.ins")
> (load "v")
> (with-sound () (fm-violin 0 1 440 .1))
> 
> But found I needed more REPL to feel comfortable working, so I yum installed emacs and then slime.
> 
> Not sure how to inteact with clm using slime from emacs now.
> 
> I read the Clementson's Blog post about course 220a, but that covers mostly slime and cm.  For cm, I'm doing fine on f18 using Grace, and S7.
> 
> I would just like to interact with clm from slime for instrument building, testing etc.
> 
> Is there some info on this, or have I misunderstood and am totally going the wrong way with this?
> 
> Thanks,
> 
> 
> 
>  		 	   		  
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20130625/c5d323af/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 25 Jun 2013 10:34:48 +0200
> From: andersvi at notam02.no
> Subject: Re: [CM] clm, slime
> To: cmdist at ccrma.Stanford.EDU
> Message-ID: <87r4fqh9lj.fsf at notam02.no>
> Content-Type: text/plain
> 
> 
>     J> I would just like to interact with clm from slime for instrument
>     J> building, testing etc.
> 
>     J> Is there some info on this, or have I misunderstood and am
>     J> totally going the wrong way with this?
> 
> Youre definitely not on a wrong path.  Slime provides extremely powerful
> interaction for everyting common-lispy, also sbcl/clm.
> 
> First make sure slime is set up and running.  If 'M-x slime' gets sbcl
> running and gives you a *slime-repl* buffer you should be fine.
> 
> For clm, you'll need to have your .ins files in lisp-mode when editing.
> Putting:
> 
>   (add-to-list 'auto-mode-alist '("\\.ins$" . lisp-mode))
> 
> inside .emacs will make emacs do this for you.
> 
> In clm, the standard mode is working on a separate instrument file -
> 
>   (definstrument ...
>         (run ...))
> 
> compiling and loading it, fex. by hitting "C-c C-k" inside the
> .ins-buffer in slime, or following the example about v.ins in
> README.clm.
> 
> Then calling it from a score:
> 
> (with-sound (various-file-options)
>   (instrument-call 1)
>   (instrument-call 2)
>   ...)
> 
> But here the repl isnt very useful.  Usually you dont spend much time
> coding in the 'slime-repl* buffer when working on larger bits of code,
> eg. instruments or score-files.
> 
> Instead you typically set up files in lisp-mode (.cl, .clm or somesuch)
> to hold variations and sketches, projects etc., moving around in these,
> evaluating regions or expressions.  Here slime comes in with all its
> powers, giving you auto-completion, cross-referencing,
> documentation-lookup, editing expressions, evaluation of regions,
> looking up arglists etc.
> 
> You could read the basic slime-docs from a info-file or similar.  Or
> have a look in the various menus.
> 
> Good luck finding your ways around.
> 
> -anders
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
> 
> 
> End of Cmdist Digest, Vol 62, Issue 3
> *************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20130626/17f14409/attachment.html 


More information about the Cmdist mailing list