Sophie

Sophie

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

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>GEN15</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="ScoregensTop.html" title="Score Statements and GEN Routines" />
    <link rel="prev" href="GEN14.html" title="GEN14" />
    <link rel="next" href="GEN16.html" title="GEN16" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">GEN15</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="GEN14.html">Prev</a> </td>
          <th width="60%" align="center">Score Statements and GEN Routines</th>
          <td width="20%" align="right"> <a accesskey="n" href="GEN16.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="GEN15">
      <a id="GEN15"></a>
      <div class="titlepage"></div>
      <a id="IndexGEN15" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">GEN15</span>
        </h2>
        <p>GEN15 — 
      Creates two tables of stored polynomial functions.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3736659"></a>
        <h2>Description</h2>
        <p>
      This subroutine creates two tables of stored polynomial functions, suitable for use in phase quadrature operations.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3737553"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>f</strong></span> # time size 15 xint xamp h0 phs0 h1 phs1 h2 phs2 ...</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3737570"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>size</em></span> -- number of points in the table. Must be a power of 2 or a power-of-2 plus 1 (see <a class="link" href="f.html" title="f Statement (or Function Table Statement)"><em class="citetitle">f statement</em></a>). The normal value is power-of-2 plus 1.
    </p>
        <p>
      <span class="emphasis"><em>xint</em></span> -- provides the left and right values [<span class="emphasis"><em>-xint</em></span>, <span class="emphasis"><em>+xint</em></span>] of the <span class="emphasis"><em>x</em></span> interval over which the polynomial is to be drawn. This subroutine will eventually call <a class="link" href="GEN03.html" title="GEN03"><em class="citetitle">GEN03</em></a> to draw both functions; this p5 value is therefor expanded to a negative-positive p5, p6 pair before <span class="emphasis"><em>GEN03</em></span> is actually called. The normal value is 1.
    </p>
        <p>
      <span class="emphasis"><em>xamp </em></span> -- amplitude scaling factor of the sinusoid input that is expected to produce the following spectrum.
    </p>
        <p>
      <span class="emphasis"><em>h0, h1, h2, ... hn</em></span> -- relative strength of partials 0 (DC), 1 (fundamental), 2 ... that will result when a sinusoid of amplitude 

      </p>
        <div class="literallayout">
          <p><br />
xamp * int(size/2)/xint<br />
      </p>
        </div>
        <p>

      is waveshaped using this function table. These values thus describe a frequency spectrum associated with a particular factor <span class="emphasis"><em>xamp</em></span> of the input signal.
    </p>
        <p>
      <span class="emphasis"><em>phs0, phs1, ... </em></span> -- phase in degrees of desired harmonics <span class="emphasis"><em>h0, h1, ...</em></span> when the two functions of <span class="emphasis"><em>GEN15</em></span> are used with phase quadrature.
    </p>
        <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note: 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">
                <p>
        <span class="emphasis"><em>GEN15</em></span> creates two tables of equal size, labeled <span class="emphasis"><em>f </em></span># and <span class="emphasis"><em>f</em></span> # + 1. Table # will contain a Chebyshev function of the first kind, drawn using <a class="link" href="GEN03.html" title="GEN03"><em class="citetitle">GEN03</em></a> with partial strengths <span class="emphasis"><em>h0cos(phs0), h1cos(phs1), ...</em></span> Table #+1 will contain a Chebyshev function of the 2nd kind by calling <a class="link" href="GEN14.html" title="GEN14"><em class="citetitle">GEN14</em></a> with partials <span class="emphasis"><em>h1sin(phs1), h2sin(phs2),...</em></span> (note the harmonic displacement). The two tables can be used in conjunction in a waveshaping network that exploits phase quadrature.
      </p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="refsect1" title="See Also">
        <a id="id3737726"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="GEN03.html" title="GEN03"><em class="citetitle">GEN03</em></a>,
      <a class="link" href="GEN13.html" title="GEN13"><em class="citetitle">GEN13</em></a>, and
      <a class="link" href="GEN14.html" title="GEN14"><em class="citetitle">GEN14</em></a>.
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="GEN14.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ScoregensTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="GEN16.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">GEN14 </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> GEN16</td>
        </tr>
      </table>
    </div>
  </body>
</html>