[CM] wrapper macro strategies

Bill Schottstaedt bil@ccrma.Stanford.EDU
Tue, 29 Jul 2003 04:40:27 -0700


Perhaps this is closer to what you want:

(defmacro balance-sounds (&rest exprs)
  (let* ((temps '())
     (calls (mapcar #'(lambda (expr)
                  (let ((tmp (gentemp)))
                (push tmp temps)
                (list tmp expr)))
              exprs)))
    `(sound-let ,calls
    (balance ,@temps))))

or (balance ,@(reverse temps)) -- not sure which order you want.