Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 2489

csound-manual-5.13.0-5.fc15.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>pvsftw</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <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="pvsftr.html" title="pvsftr" />
    <link rel="next" href="pvsfwrite.html" title="pvsfwrite" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">pvsftw</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="pvsftr.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="pvsfwrite.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="pvsftw">
      <a id="pvsftw"></a>
      <div class="titlepage"></div>
      <a id="IndexPvsftw" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">pvsftw</span>
        </h2>
        <p>pvsftw — 
      Writes amplitude and/or frequency data to function tables.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3135621"></a>
        <h2>Description</h2>
        <p>
      Writes amplitude and/or frequency data to function tables.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3135632"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">kflag <span class="command"><strong>pvsftw</strong></span> fsrc, ifna [, ifnf]</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3135848"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ifna</em></span> -- A table, at least inbins in size, that stores amplitude data. Ignored if ifna  = 0
    </p>
        <p>
      <span class="emphasis"><em>ifnf</em></span> -- A table, at least inbins in size, that stores frequency data. Ignored if ifnf = 0
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3135871"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kflag</em></span> -- A flag that has the value of 1 when new data is available, 0 otherwise.
    </p>
        <p>
      <span class="emphasis"><em>fsrc</em></span> -- a PVOC-EX formatted source.
    </p>
        <p>
      Enables the contents of <span class="emphasis"><em>fsrc</em></span> to be exchanged with function tables, for custom processing. Except when the frame overlap equals <span class="emphasis"><em>ksmps</em></span> (which will generally not be the case), the frame data is not updated each control period. The data in <span class="emphasis"><em>ifna</em></span>, <span class="emphasis"><em>ifnf</em></span> should only be processed when <span class="emphasis"><em>kflag</em></span> is set to 1. To process only frequency data, set <span class="emphasis"><em>ifna</em></span> to zero.
    </p>
        <p>
      As the functions tables are required only to store data from <span class="emphasis"><em>fsrc</em></span>, there is no advantage in defining then in the score. They should generally be created in the instrument using <a class="link" href="ftgen.html" title="ftgen"><em class="citetitle">ftgen</em></a>.
    </p>
        <p>
      By exporting amplitude data, say, from one fsig and importing it into another, basic cross-synthesis (as in <a class="link" href="pvscross.html" title="pvscross"><em class="citetitle">pvscross</em></a>) can be performed, with the option to modify the data beforehand using the table manipulation opodes.
    </p>
        <p>
      Note that the format data in the source fsig is not written to the tables. This therefore offers a means of transferring amplitude and frequency data between non-identical fsigs. Used this way, these opcodes become potentially pathological, and can be relied upon to produce unexpected  results. In such cases, resynthesis using <a class="link" href="pvsadsyn.html" title="pvsadsyn"><em class="citetitle">pvsadsyn</em></a> would almost certainly be required.
    </p>
        <p>
      To perform a straight copy from one fsig to another one of identical format, the conventional assignment syntax can be used:

      </p>
        <div class="literallayout">
          <p> <br />
fsig1 = fsig2<br />
      </p>
        </div>
        <p> 
 
      It is not necessary to use function tables in this case.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id3136545"></a>
        <h2>Examples</h2>
        <p>
      </p>
        <div class="informalexample">
          <pre class="programlisting">
ifn     ftgen      0,0,inbins,10,1        ; make ftable
kflag   pvsftw     fsrc,ifn          ; export  amps to table,
kamp    init       0
if      kflag==0   kgoto contin   ; only proc when frame is ready
; kill lowest bins, for obvious effect
        tablew      kamp,1,ifn
        tablew      kamp,2,ifn
        tablew      kamp,3,ifn
        tablew      kamp,4,ifn
; read modified data back to fsrc
        pvsftr      fsrc,ifn
contin:
; and resynth
aout    pvsynth    fsrc
        </pre>
        </div>
        <p>
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="id3136572"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="pvsftr.html" title="pvsftr"><em class="citetitle">pvsftr</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3136589"></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="pvsftr.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="pvsfwrite.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">pvsftr </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> pvsfwrite</td>
        </tr>
      </table>
    </div>
  </body>
</html>