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
                                          
_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to