[CM] emacs, slime, sbcl, clm

James Hearon j_hearon at hotmail.com
Fri Sep 6 11:08:25 PDT 2013


Hi,
I'm getting myself confused about how to evaluate a clm .lisp file in emacs.

I tried evaluating the inst below but get a lisp error: (void-function with-sound).

(definstrument examp1 (start-time duration frequency amplitude)
  (let* ((beg (floor (* start-time *srate*)))
     (end (+ beg (floor (* duration *srate*))))
     (j 0))
    (run
      (loop for i from beg below end do
        (outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*)))))
    (incf j)))))

(with-sound () (examp1 0 3.25 440.0 0.75))

I did a load all.lisp before evaluating and all the .fasl files are generated etc.  Also the compile-file, then load, and finally with-sound approach is working o.k. for .ins files, but I was trying to code an inst using a .lisp file and evaluating from emacs so I could play then edit(tweak) from the buffer.  Does that approach not work?

Regards,
Jim
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20130906/2a94fa56/attachment.html 


More information about the Cmdist mailing list