<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>I'm stuck on a bit of info from snd/clm manual re: summing combs. I was able to do it in snd/clm using comb-bank, but I'm stuck on cl/clm approach where you need to loop thru and sum the combs.&nbsp; Hoping I can get some help with my code, below. I may have made a mess of it, but can't seem to figure out how to do it.&nbsp; Thank you.<br><br>&nbsp;(let ((sum 0.0)) <br>&nbsp; (do ((i 0 (+ i 1)))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= i n) sum)<br>&nbsp;&nbsp;&nbsp; (set! sum (+ sum (comb (combs i) x)))))<br><br>can be replaced with:<br><br>(let ((cb (make-comb-bank combs)))<br>&nbsp; ...<br>&nbsp; (comb-bank cb x))<br><br>----------------<br>error:<br>The LET* binding spec (COMBS 1 (MAKE-COMB 1.0 600)) is malformed.<br><br>(definstrument mult-combs (beg dur freq amp)<br>&nbsp; (let* ((start (floor (* beg *srate*)))<br>&nbsp;&nbsp;&nbsp; &nbsp;(end (+ start (floor (* dur *srate*))))<br>&nbsp;&nbsp;&nbsp; &nbsp;(os (make-oscil freq))<br>&nbsp;&nbsp;&nbsp;&nbsp; (combs 1 (make-comb 1.0 600))<br>&nbsp;&nbsp;&nbsp;&nbsp; (combs 2 (make-comb 2.0 300))<br>&nbsp;&nbsp;&nbsp;&nbsp; (combs 3 (make-comb 3.0 100))<br>&nbsp;&nbsp;&nbsp;&nbsp; (sum 0.0) ) <br>&nbsp;&nbsp;&nbsp; (do ((i 0 (+ i 1))) <br>&nbsp;&nbsp;&nbsp; ((= i 3) sum)&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; (set! sum (+ sum (comb (combs i) 0.02))) )<br>&nbsp;&nbsp;&nbsp;&nbsp; (run<br>&nbsp;&nbsp;&nbsp;&nbsp; (loop for i from start to end do<br>&nbsp;&nbsp; (outa i (comb sum (* amp (oscil os))))&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; (outb i (comb sum (* amp (oscil os)))) ))))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;(with-sound (:channels 2 :srate 48000 :header-type mus-riff :output "mytest.wav")<br>&nbsp;&nbsp; (mult-combs 0 5 200 .8)<br>&nbsp;)<br>                                               </div></body>
</html>