<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm getting hung up in mixes.&nbsp; Trying something like the manual example, below, but</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
getting back an error that the argument is a pair, not a mix (object).&nbsp; <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Wondering we're I might be going wrong?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jim<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
---------------------<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre class="indented"><em class="def">mix-home</em> mix
</pre>
<p>mix-home returns a list containing the mix's output sound and channel number, and the input original filename (if any), and input channel.
</p>
<pre class="indented">&gt; (define mx (mix &quot;pistol.snd&quot; 1000))
#&lt;mix 0&gt;
&gt; (mix-home mx)
(#&lt;sound 0&gt; 0 &quot;/home/bil/cl/pistol.snd&quot; 0)
;; (list output-sound-index output-channel input-filename input-channel)
&gt; (set! mx (mix-float-vector (make-float-vector 100 .1) 2000))
#&lt;mix 1&gt;
&gt; (mix-home mx)
(#&lt;sound 0&gt; 0 #f 0)
;;   #f: no input file
<br>-------------------<br><br>mine:
<br>(begin (open-sound &quot;oboe.snd&quot;))<br>(define mx (mix &quot;pistol.snd&quot; 1000))<br>&gt;(#&lt;mix 0&gt;)<br>(mix-home mx) ;XXX<br>&gt;mix-home argument 1, (#&lt;mix 0&gt;), is a pair but should be a mix <br><br>...stuck on other calls too such as<br>(mix-maxamp mx)<br>(mix-name-&gt;id 0)<br>(set! (mix-amp mx) .05)<br><br>but<br>(find-mix 0 0 0)   ;works<br></pre>
<br>
</div>
</body>
</html>