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