Sophie

Sophie

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

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>pvsinfo</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="pvsifd.html" title="pvsifd" />
    <link rel="next" href="pvsinit.html" title="pvsinit" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">pvsinfo</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="pvsifd.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="pvsinit.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="pvsinfo">
      <a id="pvsinfo"></a>
      <div class="titlepage"></div>
      <a id="IndexPvsinfo" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">pvsinfo</span>
        </h2>
        <p>pvsinfo — 
      Get information from a PVOC-EX formatted source.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp38939336"></a>
        <h2>Description</h2>
        <p>
      Get format information about fsrc, whether created by an opcode such as pvsanal, or obtained from a PVOCEX file by pvsfread. This information is available at init time, and can be used to set parameters for other pvs opcodes, and in particular for creating function tables (e.g. for pvsftw), or setting the number of oscillators for pvsadsyn.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp38940288"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ioverlap, inumbins, iwinsize, iformat <span class="command"><strong>pvsinfo</strong></span> fsrc</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp38950784"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ioverlap</em></span> -- The stream overlap size.
    </p>
        <p>
      <span class="emphasis"><em>inumbins</em></span> -- The number of analysis bins (amplitude+frequency) in fsrc. The underlying FFT size is calculated as (inumbins -1) * 2.
    </p>
        <p>
      <span class="emphasis"><em>iwinsize</em></span> -- The analysis window size. May be larger than the FFT size.
    </p>
        <p>
      <span class="emphasis"><em>iformat</em></span> -- The analysis frame format. If fsrc is created by an opcode, iformat will always be 0, signifying amplitude+frequency. If fsrc is defined from a PVOC-EX file, iformat may also have the value 1 or 2 (amplitude+phase, complex).
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp38953256"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the pvsinfo opcode. It uses the file <a class="ulink" href="examples/pvsinfo.csd" target="_top"><em class="citetitle">pvsinfo.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp38954232"></a>
          <p class="title">
            <strong>Example 664. Example of the pvsinfo 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 pvsinfo.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> 2
<span class="ohdr">0dbfs</span>  <span class="op">=</span> 1

<span class="oblock">instr</span> 1
<span class="comment">; create a PVOC-EX (*.pvx) file with PVANAL first</span>
idur <span class="opc">filelen</span>  "fox.pvx"		<span class="comment">;find duration of analysis file</span>
kpos <span class="opc">line</span>     0,p3,idur		<span class="comment">;to ensure we process whole file</span>
fsrc <span class="opc">pvsfread</span> kpos, "fox.pvx"	<span class="comment">;create fsig from (mono) file</span>

iovl,inb,iws,ifmt <span class="opc">pvsinfo</span> fsrc	<span class="comment">;get info</span>
<span class="opc">print</span> iovl,inb,iws,ifmt		<span class="comment">;print info</span>

aout <span class="opc">pvsynth</span> fsrc
     <span class="opc">outs</span> aout, aout

<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 3
<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>
        <p>
      The example will produce the following output:
      </p>
        <pre class="screen">
instr 1:  iovl = 256.000  inb = 513.000  iws = 2048.000  ifmt = 0.000
      </pre>
        <p>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp38992760"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Richard Dobson</td>
          </tr>
          <tr>
            <td>August 2001 </td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in version 4.13</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="pvsifd.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="pvsinit.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">pvsifd </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> pvsinit</td>
        </tr>
      </table>
    </div>
  </body>
</html>