[CM] emacs, slime, sbcl, clm
j_hearon at hotmail.com
Fri Sep 6 11:08:25 PDT 2013
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*))))
(loop for i from beg below end do
(outa i (* amplitude (sin (* j 2.0 pi (/ frequency *srate*)))))
(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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cmdist