[CM] translating spirals into music CLM

john henry dale johnhenrydale@gmail.com
Sun, 12 Aug 2007 01:58:27 +0100


------=_Part_78370_17667721.1186880307135
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hi fernando,
I am getting repetitive clicking noises from the speakers when I put the
following code into CLM using a 4 speaker arrangement. The sample file is
mono.

(with-sound (:channels 4 :Scaled-to .99 :Srate 44100 :statistics t
             :reverb nrev :Printing nil)
     (move-it (:channels 2
            :paths (list (make-path '((-10 10)(0.1 0.1)(10 -10)))
                         (make-spiral-path :turns 2)))

       (samp2 "eastern_guitar.aif" 0)))

i am also getting these type of warnings:

"WARNING:
   supersonic radial movement at [2.3851562,-2.2046876,0.0, 0.61474013],
speed=28.252476"

The sound spirals around the speakers nicely, except for the clicks.
What am I doing wrong here ?

Thanks,
JHD




On 8/2/07, Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> wrote:
>
> On Wed, 2007-08-01 at 23:49 +0100, john henry dale wrote:
> > Hi Fernando,
> > in taking a look at dlocsig.html, I found what seems to be a way to
> > generate spiralling sound spatialization using Geometric Paths
> > (dlocsig.html#geometric-paths):
> > make-spiral-path
> > &optional-key
> >
> >
> > (start-angle 0d0)
> > (total-angle nil)
> > (step-angle (/ dlocsig-one-turn
> > 100))
> > (turns nil)
> > (distance '(0 10 1 10))
> > (height '(0 0 1 0))
> > (velocity '(0 1 1 1))
> >
> > But i'm not sure where in my CLM composition's code I would insert
> > this spiral path info to actually apply this spatialization to my
> > output track.
> > For my performance the audience will be surrounded by 9 speakers ( 4
> > on the floor, 4 at slightly above ear level when sitting + one speaker
> > above) , so basically a cube of about 25x 25 x 5 feet  with a speaker
> > at each corner and a tweeter tree overhead. I'm trying to figure out
> > two things in this email:
> >
> >
> > 1) What arguments do i give the make-spiral-path function to generate
> > a logarithmic spiral which goes upward into a cone which would come to
> > its apex at the height of the audience's ears (about 5 feet 5 inches)
> > with a total angle of 23.5 degrees ?
>
> You can (should) be able to use "distance" and "height" to do what you
> need to. "distance" is the distance between the listener and the moving
> object - it can be a 3d list provided that path-3d is "t", such as '(0 1
> 0)(0 2 3)), etc, where each sublist is an x/y/z triple. Same for
> height.
>
> > Basically i am trying to mimic the spiral created by the Earth's
> > precessional cycle on a small scale for my final performance. This
> > might be easier with a visual aid. Check this movie out:
> > http://www.lunarplanner.com/HCmovies/HCmovie300Frame.html. So using
> > this movie as a model, the height of the spiral at its apex (and at
> > the climax point of the composition) would be, figuratively, in the
> > center of the earth where the two cones formed by earth's 23.5 degree
> > wobble on its axis come together at one point. Does that make sense ?
> >
> >
> > 2) What arguments do I give the arrange-speaker functions to, i.e. how
> > would I map this speaker arrangement ?
>
> I think this is still valid, there's some details there (and I think
> there's a dlocsig.html file in the clm distro as well):
>
>   http://ccrma.stanford.edu/~nando/clm/dlocsig/
>
> Basically you specify angles (azimut and elevation) for the speakers and
> then you have to group them in triads for 3d (ie: you have to
> tesselate(sp?) space so that it is covered with three adjacent speaker
> groups - I gave up on finding lisp code that would do that
> automatically). There are some default configurations in the source file
> that should provide a guide.
>
> > What were your results in testing these spiral paths on a
> > multi-speaker system ? Did you use gnuplot to generate your spiral
> > coordinates or can you fairly easily plug them into the
> > make-spiral-path argument ?
>
> They sounded, well, like spiral paths :-) That does not necessarily mean
> they make good musical sense, of course... Sometimes I did use gnuplot
> to visualize them, there's some functions in the code to drive gnuplot
> but I have not tested the whole thing in a long time, I don't know if
> all that code still works.
>
> >  Also,  would i also need to render my final output as an Ambisonics
> > file for 9 speakers to accomplish something like this ?
>
> You choose your rendering model. No need to use Ambisonics. The
> advantage of it being that you could render to an Ambisonics B format 4
> channel soundfile and then decode that at "listening time" for any array
> of speakers with the proper decoder.
>
> > Sorry for the heavy question-load, but I'm getting a little lost in
> > all this 3-d spatialization stuff.
>
> It is complicated...
> -- Fernando
>
>
>

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

hi fernando,<br>I am getting repetitive clicking noises from the speakers when I put the following code into CLM using a 4 speaker arrangement. The sample file is mono.<br><br><span style="font-weight: bold;">(with-sound (:channels 4 :Scaled-to .99 :Srate 44100 :statistics t 
</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :reverb nrev :Printing nil)</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp; (move-it (:channels 2 </span><br style="font-weight: bold;">
<span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :paths (list (make-path &#39;((-10 10)(0.1 0.1)(10 -10)))</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (make-spiral-path :turns 2)))
</span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br style="font-weight: bold;"><span style="font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (samp2 &quot;eastern_guitar.aif&quot; 0)))</span><br><br>i am also getting these type of warnings:&nbsp; 
<br><br>&quot;WARNING:<br>&nbsp;&nbsp; supersonic radial movement at [2.3851562,-2.2046876,0.0, 0.61474013], speed=28.252476&quot;<br><br>The sound spirals around the speakers nicely, except for the clicks.<br>What am I doing wrong here ? 
<br><br>Thanks,<br>JHD<br><br><br><br><br><div><span class="gmail_quote">On 8/2/07, <b class="gmail_sendername">Fernando Lopez-Lezcano</b> &lt;<a href="mailto:nando@ccrma.stanford.edu">nando@ccrma.stanford.edu</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wed, 2007-08-01 at 23:49 +0100, john henry dale wrote:<br>&gt; Hi Fernando,<br>&gt; in taking a look at 
dlocsig.html, I found what seems to be a way to<br>&gt; generate spiralling sound spatialization using Geometric Paths<br>&gt; (dlocsig.html#geometric-paths):<br>&gt; make-spiral-path<br>&gt; &amp;optional-key<br>&gt;<br>
&gt;<br>&gt; (start-angle 0d0)<br>&gt; (total-angle nil)<br>&gt; (step-angle (/ dlocsig-one-turn<br>&gt; 100))<br>&gt; (turns nil)<br>&gt; (distance &#39;(0 10 1 10))<br>&gt; (height &#39;(0 0 1 0))<br>&gt; (velocity &#39;(0 1 1 1))
<br>&gt;<br>&gt; But i&#39;m not sure where in my CLM composition&#39;s code I would insert<br>&gt; this spiral path info to actually apply this spatialization to my<br>&gt; output track.<br>&gt; For my performance the audience will be surrounded by 9 speakers ( 4
<br>&gt; on the floor, 4 at slightly above ear level when sitting + one speaker<br>&gt; above) , so basically a cube of about 25x 25 x 5 feet&nbsp;&nbsp;with a speaker<br>&gt; at each corner and a tweeter tree overhead. I&#39;m trying to figure out
<br>&gt; two things in this email:<br>&gt;<br>&gt;<br>&gt; 1) What arguments do i give the make-spiral-path function to generate<br>&gt; a logarithmic spiral which goes upward into a cone which would come to<br>&gt; its apex at the height of the audience&#39;s ears (about 5 feet 5 inches)
<br>&gt; with a total angle of 23.5 degrees ?<br><br>You can (should) be able to use &quot;distance&quot; and &quot;height&quot; to do what you<br>need to. &quot;distance&quot; is the distance between the listener and the moving
<br>object - it can be a 3d list provided that path-3d is &quot;t&quot;, such as &#39;(0 1<br>0)(0 2 3)), etc, where each sublist is an x/y/z triple. Same for<br>height.<br><br>&gt; Basically i am trying to mimic the spiral created by the Earth&#39;s
<br>&gt; precessional cycle on a small scale for my final performance. This<br>&gt; might be easier with a visual aid. Check this movie out:<br>&gt; <a href="http://www.lunarplanner.com/HCmovies/HCmovie300Frame.html">http://www.lunarplanner.com/HCmovies/HCmovie300Frame.html
</a>. So using<br>&gt; this movie as a model, the height of the spiral at its apex (and at<br>&gt; the climax point of the composition) would be, figuratively, in the<br>&gt; center of the earth where the two cones formed by earth&#39;s 
23.5 degree<br>&gt; wobble on its axis come together at one point. Does that make sense ?<br>&gt;<br>&gt;<br>&gt; 2) What arguments do I give the arrange-speaker functions to, i.e. how<br>&gt; would I map this speaker arrangement ?
<br><br>I think this is still valid, there&#39;s some details there (and I think<br>there&#39;s a dlocsig.html file in the clm distro as well):<br><br>&nbsp;&nbsp;<a href="http://ccrma.stanford.edu/~nando/clm/dlocsig/">http://ccrma.stanford.edu/~nando/clm/dlocsig/
</a><br><br>Basically you specify angles (azimut and elevation) for the speakers and<br>then you have to group them in triads for 3d (ie: you have to<br>tesselate(sp?) space so that it is covered with three adjacent speaker
<br>groups - I gave up on finding lisp code that would do that<br>automatically). There are some default configurations in the source file<br>that should provide a guide.<br><br>&gt; What were your results in testing these spiral paths on a
<br>&gt; multi-speaker system ? Did you use gnuplot to generate your spiral<br>&gt; coordinates or can you fairly easily plug them into the<br>&gt; make-spiral-path argument ?<br><br>They sounded, well, like spiral paths :-) That does not necessarily mean
<br>they make good musical sense, of course... Sometimes I did use gnuplot<br>to visualize them, there&#39;s some functions in the code to drive gnuplot<br>but I have not tested the whole thing in a long time, I don&#39;t know if
<br>all that code still works.<br><br>&gt;&nbsp;&nbsp;Also,&nbsp;&nbsp;would i also need to render my final output as an Ambisonics<br>&gt; file for 9 speakers to accomplish something like this ?<br><br>You choose your rendering model. No need to use Ambisonics. The
<br>advantage of it being that you could render to an Ambisonics B format 4<br>channel soundfile and then decode that at &quot;listening time&quot; for any array<br>of speakers with the proper decoder.<br><br>&gt; Sorry for the heavy question-load, but I&#39;m getting a little lost in
<br>&gt; all this 3-d spatialization stuff.<br><br>It is complicated...<br>-- Fernando<br><br><br></blockquote></div><br>

------=_Part_78370_17667721.1186880307135--