<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 having some confusion about successive edits using env-&gt;channel vs. float-vector-&gt;channel.&nbsp; For example if I loop employing env-channel and a vector as an envelope, then I see the successive edits every 1k samples; but when I try to do that using float-vector-&gt;channel
 the spacing is squished.&nbsp;&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);">
Float-vector-&gt;channel works fine if I employ the vector as envelope across the whole snd., but I'm failing to understand how to employ it for successive back-to-back edits within the snd.</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 for Snd 18.7!</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);">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jim</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);">
<span>(set! (mus-srate) 48000)<br>
</span>
<div><br>
</div>
<div>&nbsp;(let* &nbsp; ((mysize 8) ;size of vector for envelope pairs<br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(fsize 48000) ;size of the snd<br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(myvec (make-float-vector mysize)) <br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br>
</div>
<div>&nbsp; &nbsp;(new-sound &quot;test.snd&quot; :size fsize)&nbsp; <br>
</div>
<div>(insert-silence 0 fsize)<br>
</div>
<div>&nbsp;(map-channel (lambda (y) 0.5)) <br>
</div>
<div><br>
</div>
<div>(float-vector-set! myvec 0 0.1);x1<br>
</div>
<div>(float-vector-set! myvec 1 0.5 );y1<br>
</div>
<div>(float-vector-set! myvec 2 0.5 );x2<br>
</div>
<div>(float-vector-set! myvec 3 1.0 );y2<br>
</div>
<div>(float-vector-set! myvec 4 0.75 );x3<br>
</div>
<div>(float-vector-set! myvec 5 -1.0 );y3<br>
</div>
<div>(float-vector-set! myvec 6 1.0 );x4<br>
</div>
<div>(float-vector-set! myvec 7 0.0 );y4<br>
</div>
<div><br>
</div>
<div>&nbsp; (do ((i 0 (&#43; i 1000)))<br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ((= i 24000))<br>
</div>
<div>(env-channel (make-env myvec :duration 0.015 :scaler 1.0) i 1000 0 0 ) <br>
</div>
<div>;(float-vector-&gt;channel myvec i 1000 0) ;place float-vector in the editor ;XXX<br>
</div>
<span>))&nbsp; </span><br>
</div>
</body>
</html>