re: clm emacs-slime

...might be a bit OT

I was hoping to get some advice on printing from emacs-slime.  I'm trying to 
print output to a visible area of the emacs editor when the code is compiled 
and runs, such as in with-sound below.

I'm using f20, sbcl, emacs-slime, and clm but having a devil of a time getting 
any contrib to load and run with my .emacs file which might support more repl 
such as to the echo area etc.  I'm wondering what approach you folks might use 
to print to std out?  Are you using a contrib package or other editor and print 
.el utility files?

I've tried things like (print ), and (format t ...) and (message ...), and 
those evaluate the expression to the echo area but they don't work when I 
compile and run and it is beeping.  Or am I totally off base, and lisp doesn't 
do that very well at all?

Thank You,
Jim


(definstrument simp (start-time duration frequency amplitude &optional (amp-env 
'(0 0 .5 1.0 1.0 0)))
  (multiple-value-bind (beg end) (times->samples start-time duration)
    (let ((osc (make-oscil :frequency frequency))
          (amp-env (make-env amp-env :scaler amplitude :duration duration)))
      (run 
       (loop for i from beg below end do
               (outa i (* (env amp-env) (oscil osc) ))
                   (outb i (* (env amp-env) (oscil osc) ))
                   )))))

(with-sound (:channels 2)
(loop
for tt from 1 to 10 by 2
do
****** (print tt) *******
(simp tt .25  220 .75)
))
                                          
_______________________________________________
Cmdist mailing list
Cmdist@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to