<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: &quot;Calibri&quot;, &quot;Helvetica&quot;, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I see where I becoming confused with moving-autocorrelation.&nbsp; Makes sense now.</div>
<div class="elementToProof" style="font-family: &quot;Calibri&quot;, &quot;Helvetica&quot;, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you,</div>
<div class="elementToProof" style="font-family: &quot;Calibri&quot;, &quot;Helvetica&quot;, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jim</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> bil@ccrma.Stanford.EDU &lt;bil@ccrma.Stanford.EDU&gt;<br>
<b>Sent:</b> Thursday, December 4, 2025 10:24 AM<br>
<b>To:</b> James Hearon &lt;j_hearon@hotmail.com&gt;<br>
<b>Cc:</b> cmdist@ccrma.Stanford.EDU &lt;cmdist@ccrma.Stanford.EDU&gt;<br>
<b>Subject:</b> Re: [CM] moving-autocorrelation</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">The moving-autocorrelation mus-data array does not<br>
have any data until you call the generator.<br>
<br>
(let* ((n 512)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (hop 128)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ac (make-moving-autocorrelation (make-readin &quot;oboe.snd&quot;) n hop <br>
))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (mydata (make-float-vector hop)))<br>
&nbsp;&nbsp; ;; call it to get some data:<br>
&nbsp;&nbsp; (moving-autocorrelation ac) ; fill mus-data<br>
&nbsp;&nbsp; (format #t &quot;mus-data:\n&quot;)<br>
&nbsp;&nbsp; (let* ((data&nbsp; (mus-data ac))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (len (length data)))<br>
&nbsp;&nbsp;&nbsp;&nbsp; (format #t &quot;length data: ~A\n &quot; len )<br>
&nbsp;&nbsp;&nbsp;&nbsp; (set! mydata (mus-data ac))<br>
&nbsp;&nbsp;&nbsp;&nbsp; (do ((i 0 (+ i 1)))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((= i hop))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (format #t &quot;~A ~0,12F\n &quot; i (mydata i) ) )))<br>
<br>
</div>
</span></font></div>
</body>
</html>