[CM] How to vary Vary?

First Last whatalltheshoutingsabout@gmail.com
Fri, 27 Apr 2007 19:27:47 -0400


------=_Part_22238_9489734.1177716467699
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

 My question concerns the function vary from the common music dictionary -

(process <../../../Lisp/cm/doc/dict/process-mac.html> for i below len

           for r = (vary rate (interpl
<../../../Lisp/cm/doc/dict/interpl-fn.html> (/ i len) env))

           for k = (between <../../../Lisp/cm/doc/dict/between-fn.html> lb ub k)

           output (new <../../../Lisp/cm/doc/dict/new-mac.html> midi
<../../../Lisp/cm/doc/dict/midi-cls.html> :time (now
<../../../Lisp/cm/doc/dict/now-fn.html>)

                      :keynum k

                      :duration (* r 1.5))

           wait r))



(define varyenv '(0 0 .1 0 .5 .75 .9 0 1 0))

How would one modify the code to read in and write out (keynums) to a
midi file instead of generating them with between?
Would appreciate any advice in this regard. Thanks!

------=_Part_22238_9489734.1177716467699
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<pre><span style="">&nbsp;My question concerns the function vary from the common music dictionary - <br><br></span>(<a href="../../../Lisp/cm/doc/dict/process-mac.html">process</a> for i below len</pre><pre><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</span>for r = (vary rate (<a href="../../../Lisp/cm/doc/dict/interpl-fn.html">interpl</a> (/ i len) env))</pre><pre><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>for k = (<a href="../../../Lisp/cm/doc/dict/between-fn.html">between</a>
 lb ub k)</pre><pre><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>output (<a href="../../../Lisp/cm/doc/dict/new-mac.html">new</a> <a href="../../../Lisp/cm/doc/dict/midi-cls.html">midi</a> <span class="keyword">:time</span> (<a href="../../../Lisp/cm/doc/dict/now-fn.html">
now</a>)</pre><pre><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="keyword">:keynum</span> k </pre><pre><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">:duration</span> (* r 1.5))</pre><pre><span style="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>wait r))</pre><pre>&nbsp;</pre><pre>(<span class="special">define</span> <span class="defined">varyenv</span> &#39;(0 0 .1 0 .5 .75 .9 0 1 0))<br><br>How would one modify the code to read in and write out (keynums) to a midi file instead of generating them with between? 
<br>Would appreciate any advice in this regard. Thanks!<br></pre>

------=_Part_22238_9489734.1177716467699--