<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 getting myself confused about the following info below from the manual about outa and *reverb*.&nbsp; If I'm understanding correctly then, *reverb* is not a reverberator and you still have to supply one, such as jc-rev, which I think I did below using with-sound.<br><br>But I'm stuck trying to figure out how to use a reverberator with a scheme process instead of with-sound.&nbsp; I know I can include the the reverb-amount etc. on the "send" line in the process, but I can't seem to figure out how to to include the jc-reverberator with the process or define.<br><br>Do I include the reverberator in the definstrument perhaps for calling it with a process?&nbsp; I know using reverb from a scheme process is much easier if I use locsig instead of outa, but I was hoping I might understand if will work or not.<br><br>Thank You,<br>Jim<br>------<br>*reverb* <br>The reverb instrument has to send to the *reverb* output stream an <br>appropriately scaled version of its main output, something like: <br>&nbsp; <br>(outa i (* sample reverb-amount) *reverb*) <br>&nbsp; <br>What clm does is, after with-sound processes the whole "note list" that&nbsp; <br>is its body, it runs the reverb instrument that you supply over the&nbsp; <br>reverb soundfile that it generated as part of running the body and then&nbsp; <br>merges the output of that instrument run into the main soundfile generated.<br>--------<br>(if (not (provided? 'jcrev.scm)) <br>&nbsp;&nbsp;&nbsp; &nbsp; (load "jcrev.scm"))<br><br>(definstrument (myexamp start-time duration frequency amplitude sampling-rate<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (reverb-amount 0.01)) <br>&nbsp; (let* ((beg (floor (* start-time sampling-rate))) <br>&nbsp;&nbsp;&nbsp; &nbsp;(end (+ beg (floor (* duration sampling-rate)))) <br>&nbsp;&nbsp;&nbsp; &nbsp;(sine-wave (make-oscil :frequency frequency))) <br>&nbsp;&nbsp;&nbsp;&nbsp; (do ((i beg (+ i 1))) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= i end))&nbsp; <br>(outa i (* (* (* amplitude (oscil sine-wave))) reverb-amount)&nbsp; *reverb*)<br>(outb i (* (* (* amplitude (oscil sine-wave))) reverb-amount)&nbsp; *reverb*)&nbsp;&nbsp; ))) <br><br>(with-sound (:output "test.wav" :srate 48000 :channels 2 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :data-format mus-lshort <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :header-type&nbsp; mus-riff<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :reverb jc-reverb) <br>(myexamp 0 1 440.0 0.5 48000 :reverb-amount 0.15))<br><br>;---------------------------------<br>;using a process<br>(define (call_myexamp n r d flb fub amp sr) <br>(process&nbsp; <br>&nbsp; for freq = (between flb fub) <br>&nbsp; repeat n do <br>&nbsp;(send "myexamp" (elapsed) d freq amp sr ) <br>&nbsp;(wait r) )) <br>&nbsp;<br>(sprout(call_myexamp 40 .15 .10 500 2000 0.5 48000) "mytest.wav")<br><br>                                               </div></body>
</html>