Sophie

Sophie

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

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>vbaplsinit</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="vbap8move.html" title="vbap8move" />
    <link rel="next" href="vbapz.html" title="vbapz" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">vbaplsinit</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="vbap8move.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="vbapz.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="vbaplsinit">
      <a id="vbaplsinit"></a>
      <div class="titlepage"></div>
      <a id="IndexVbaplsinit" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">vbaplsinit</span>
        </h2>
        <p>vbaplsinit — 
      Configures VBAP output according to loudspeaker parameters.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp50661384"></a>
        <h2>Description</h2>
        <p>
      Configures VBAP output according to loudspeaker parameters.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp50655048"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>vbaplsinit</strong></span> idim, ilsnum [, idir1] [, idir2] [...] [, idir32]</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp50656040"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>idim</em></span> -- dimensionality of loudspeaker
      array. Either 2 or 3.  If the dimension has a fractional part
      then that is used as the index of the layout created (used in
      <span class="emphasis"><em>vbap</em></span>, <span class="emphasis"><em>vbapz</em></span> and
      <span class="emphasis"><em>vbapg</em></span> only).  The factional part should be
      between .00 and .99.
    </p>
        <p>
      <span class="emphasis"><em>ilsnum</em></span> -- number of loudspeakers. In two
      dimensions, the number can vary from 2 to 64. In three
      dimensions, the number can vary from 3 and 64.
    </p>
        <p>
      <span class="emphasis"><em>idir1, idir2, ..., idir32</em></span> -- directions of
      loudspeakers. Number of directions must be less than or equal to
      16. In two-dimensional loudspeaker positioning,
      <span class="emphasis"><em>idir</em></span>n is the azimuth angle respective to
      <span class="emphasis"><em>n</em></span>th channel.  In three-dimensional
      loudspeaker positioning, fields are the azimuth and elevation
      angles of each loudspeaker consequently
      (<span class="emphasis"><em>azi1</em></span>, <span class="emphasis"><em>ele1</em></span>,
      <span class="emphasis"><em>azi2</em></span>, <span class="emphasis"><em>ele2</em></span>, etc.).
    </p>
        <p>
      </p>
        <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Note]" src="images/note.png" />
              </td>
              <th align="left">Note</th>
            </tr>
            <tr>
              <td align="left" valign="top"> In 2 dimensions the angle between two adjacent speakers
      must be less than 179 degrees (170 degrees in earlier versions).
      This is a restriction of the algorithm.</td>
            </tr>
          </table>
        </div>
        <p>
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp50720208"></a>
        <h2>Performance</h2>
        <p>
      VBAP distributes the signal using loudspeaker data configured with <span class="emphasis"><em>vbaplsinit</em></span>. The signal is applied to, at most, two loudspeakers in 2-D loudspeaker configurations, and three loudspeakers in 3-D loudspeaker configurations. If the virtual source is panned outside the region spanned by loudspeakers, the nearest loudspeakers are used in panning.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp50721368"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the vbaplsinit opcode. It uses the file <a class="ulink" href="examples/vbaplsinit.csd" target="_top"><em class="citetitle">vbaplsinit.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp50722360"></a>
          <p class="title">
            <strong>Example 927. Example of the vbaplsinit 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>
-odac  <span class="comment">;;;realtime audio out</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o vbaplsinit.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> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 8	
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1

<span class="opc">vbaplsinit</span> 2, 8, 0, 45, 90, 180, 270, 0, 0, 0		<span class="comment">;5 speakers for 5.1 amps</span>

<span class="oblock">instr</span> 1

asig <span class="opc">diskin2</span> "beats.wav", 1, 0, 1			<span class="comment">;loop beats.wav</span>
kazim <span class="opc">line</span> 1, p3, 355				
a1,a2,a3,a4,a5,a6,a7,a8 <span class="opc">vbap8</span>  asig, kazim, 0, 1	<span class="comment">;change azimuth of soundsource</span>
<span class="comment">; Speaker mapping</span>
aFL <span class="op">=</span> a1 						<span class="comment">; Front Left</span>
aMF <span class="op">=</span> a5 						<span class="comment">; Mid Front </span>
aFR <span class="op">=</span> a2 						<span class="comment">; Front Right</span>
aBL <span class="op">=</span> a3 						<span class="comment">; Back Left</span>
aBR <span class="op">=</span> a4 						<span class="comment">; Back Right</span>
    <span class="opc">outo</span> aFL,aFR,aBL,aBR,aMF,a6,a7,a8			<span class="comment">;a6, a7 and a8 are dummies				</span>

<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 5

<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" />
      See the other entries of the vbap opcodes for different examples.
    </p>
      </div>
      <div class="refsect1" title="Reference">
        <a id="idp50724728"></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="idp50725896"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="vbap.html" title="vbap"><em class="citetitle">vbap</em></a>,
      <a class="link" href="vbapg.html" title="vbapg"><em class="citetitle">vbapg</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="vbap8move.html" title="vbap8move"><em class="citetitle">vbap8move</em></a>,
      <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="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="idp50731248"></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>
        <p>Multiple layouts new ib version 5.17.14</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="vbap8move.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="vbapz.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">vbap8move </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> vbapz</td>
        </tr>
      </table>
    </div>
  </body>
</html>