Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 2800

csound-doc-5.19.01-10.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>vbap8move</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="vbap8.html" title="vbap8" />
    <link rel="next" href="vbaplsinit.html" title="vbaplsinit" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">vbap8move</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="vbap8.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="vbaplsinit.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="vbap8move">
      <a id="vbap8move"></a>
      <div class="titlepage"></div>
      <a id="IndexVbap8move" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">vbap8move</span>
        </h2>
        <p>vbap8move — 
      Distributes an audio signal among 8 channels with moving virtual sources.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp50609920"></a>
        <h2>Description</h2>
        <p>
      Distributes an audio signal among 8 channels with moving virtual sources.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp50610608"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ar1, ..., ar8 <span class="command"><strong>vbap8move</strong></span> asig, idur, ispread, ifldnum, ifld1 \
      [, ifld2] [...]</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp50663688"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>idur</em></span> -- the duration over which the
    movement takes place.
    </p>
        <p>
         <span class="emphasis"><em>ispread</em></span> -- spreading of the virtual
    source (range 0 - 100).  If value is zero, conventional amplitude
    panning is used. When <span class="emphasis"><em>ispread</em></span> is increased,
    the number of loudspeakers used in panning increases. If value is
    100, the sound is applied to all loudspeakers. 
    </p>
        <p>
      <span class="emphasis"><em>ifldnum</em></span> -- number of fields (absolute value must be 2 or larger). If <span class="emphasis"><em>ifldnum</em></span> is positive, the virtual source movement is a polyline specified by given directions. Each transition is performed in an equal time interval. If <span class="emphasis"><em>ifldnum</em></span> is negative, specified angular velocities are applied to the virtual source during specified relative time intervals (see below).
    </p>
        <p>
      <span class="emphasis"><em>ifld1, ifld2, ...</em></span> -- azimuth angles or angular velocities, and relative durations of movement phases (see below).
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp50667168"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>asig</em></span> -- audio signal to be panned
    </p>
        <p>
      <span class="emphasis"><em>vbap8move</em></span> allows the use of moving virtual sources. If <span class="emphasis"><em>ifldnum</em></span> is positive, the fields represent directions of virtual sources and equal times, <span class="emphasis"><em>iazi1</em></span>, [<span class="emphasis"><em>iele1</em></span>,] <span class="emphasis"><em>iazi2</em></span>, [<span class="emphasis"><em>iele2</em></span>,], etc.  The position of the virtual source is interpolated between directions starting from the first direction and ending at the last. Each interval is interpolated in time that is fraction total_time / number_of_intervals of the duration of the sound event.
    </p>
        <p>
      If <span class="emphasis"><em>ifldnum</em></span> is negative, the fields represent angular velocities and equal times. The first field is, however, the starting direction, <span class="emphasis"><em>iazi1</em></span>, [<span class="emphasis"><em>iele1</em></span>,] <span class="emphasis"><em>iazi_vel1</em></span>, [<span class="emphasis"><em>iele_vel1</em></span>,] <span class="emphasis"><em>iazi_vel2</em></span>, [<span class="emphasis"><em>iele_vel2</em></span>,] .... Each velocity is applied to the note that is fraction total_time / number_of_velocities of the duration of the sound event.  If the elevation of the virtual source becomes greater than 90 degrees or less than 0 degrees, the polarity of angular velocity is changed. Thus the elevational angular velocity produces a virtual source that moves up and down between 0 and 90 degrees.
    </p>
        <div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Warning">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Warning]" src="images/warning.png" />
              </td>
              <th align="left">Warning</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>Please note that all <span class="emphasis"><em>vbap</em></span> panning opcodes require the <span class="emphasis"><em>vbap</em></span> system to be initialized using <a class="link" href="vbaplsinit.html" title="vbaplsinit"><em class="citetitle">vbaplsinit</em></a>.</p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="refsect1" title="Example">
        <a id="idp50673440"></a>
        <h2>Example</h2>
        <p>
      Here is a simple example of the <span class="emphasis"><em>vbap8move</em></span> opcode. It uses the file <a class="ulink" href="examples/vbap8move.csd" target="_top"><em class="citetitle">vbap8move.csd</em></a>.

      </p>
        <div class="example">
          <a id="idp50674640"></a>
          <p class="title">
            <strong>Example 926. Example of the vbap8move opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
<span class="comment">; Audio out   Audio in</span>
-odac           -iadc    <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o vbap4move.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 48000
<span class="ohdr">ksmps</span> <span class="op">=</span> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 8

<span class="comment">;Example by Hector Centeno 2007</span>

<span class="opc">vbaplsinit</span>    2, 8, 15, 65, 115, 165, 195, 245, 295, 345

    <span class="oblock">instr</span> 1
ifldnum <span class="op">=</span> 9
ispread <span class="op">=</span> 30
idur <span class="op">=</span> p3

<span class="comment">;; Generate a sound source</span>
kenv <span class="opc">loopseg</span> 10, 0, 0, 0, 0.5, 1, 10, 0
a1 <span class="opc">pinkish</span> 3000<span class="op">*</span>kenv

<span class="comment">;; Move circling around once all the speakers</span>
aout1, aout2, aout3, aout4, aout5, aout6, aout7, aout8 <span class="opc">vbap8move</span> a1, idur, ispread, ifldnum, 15, 65, 115, 165, 195, 245, 295, 345, 15

<span class="comment">;; Speaker mapping</span>
aFL <span class="op">=</span> aout8 <span class="comment">; Front Left</span>
aFR <span class="op">=</span> aout1 <span class="comment">; Front Right</span>
aMFL <span class="op">=</span> aout7 <span class="comment">; Mid Front Left</span>
aMFR <span class="op">=</span> aout2 <span class="comment">; Mid Front Right</span>
aMBL <span class="op">=</span> aout6 <span class="comment">; Mid Back Left</span>
aMBR <span class="op">=</span> aout3 <span class="comment">; Mid Back Right</span>
aBL <span class="op">=</span> aout5 <span class="comment">; Back Left</span>
aBR <span class="op">=</span> aout4 <span class="comment">; Back Right</span>

<span class="opc">outo</span> aFL, aFR, aMFL, aMFR, aMBL, aMBR, aBL, aBR

    <span class="oblock">endin</span>

<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="stamnt">i</span>1 0 30
<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="Reference">
        <a id="idp50676920"></a>
        <h2>Reference</h2>
        <p>
      Ville Pulkki: <span class="quote">“<span class="quote">Virtual Sound Source Positioning Using Vector Base Amplitude Panning</span>”</span> <span class="emphasis"><em>Journal of the Audio Engineering Society</em></span>, 1997 June, Vol. 45/6, p. 456.
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp50678088"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="vbap16.html" title="vbap16"><em class="citetitle">vbap16</em></a>,
      <a class="link" href="vbap16move.html" title="vbap16move"><em class="citetitle">vbap16move</em></a>,
      <a class="link" href="vbap4.html" title="vbap4"><em class="citetitle">vbap4</em></a>,
      <a class="link" href="vbap4move.html" title="vbap4move"><em class="citetitle">vbap4move</em></a>,
      <a class="link" href="vbap8.html" title="vbap8"><em class="citetitle">vbap8</em></a>,
      <a class="link" href="vbaplsinit.html" title="vbaplsinit"><em class="citetitle">vbaplsinit</em></a>,
      <a class="link" href="vbapz.html" title="vbapz"><em class="citetitle">vbapz</em></a>,
      <a class="link" href="vbapzmove.html" title="vbapzmove"><em class="citetitle">vbapzmove</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp50682480"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Ville Pulkki</td>
          </tr>
          <tr>
            <td>Sibelius Academy Computer Music Studio</td>
          </tr>
          <tr>
            <td>Laboratory of Acoustics and Audio Signal Processing</td>
          </tr>
          <tr>
            <td>Helsinki University of Technology</td>
          </tr>
          <tr>
            <td>Helsinki, Finland</td>
          </tr>
          <tr>
            <td>May 2000</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound Version 4.07</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="vbap8.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="vbaplsinit.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">vbap8 </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> vbaplsinit</td>
        </tr>
      </table>
    </div>
  </body>
</html>