Sophie

Sophie

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

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>ftmorf</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="ftlptim.html" title="ftlptim" />
    <link rel="next" href="ftsave.html" title="ftsave" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">ftmorf</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ftlptim.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="ftsave.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="ftmorf">
      <a id="ftmorf"></a>
      <div class="titlepage"></div>
      <a id="IndexFtmorf" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">ftmorf</span>
        </h2>
        <p>ftmorf — 
       Morphs between multiple ftables as specified in a list.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp24790672"></a>
        <h2>Description</h2>
        <p>
      Uses an index into a table of ftable numbers to morph between adjacent tables in the list.This morphed function is written into the table referenced by <span class="emphasis"><em>iresfn</em></span> on every k-cycle.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp24798832"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>ftmorf</strong></span> kftndx, iftfn, iresfn</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp24799872"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>iftfn</em></span> -- The table containing the numbers of any existing tables which are used for the morphing.
    </p>
        <p>
      <span class="emphasis"><em>iresfn</em></span> -- Table number of the morphed function
    </p>
        <p>
      The length of all the tables in <span class="emphasis"><em>iftfn</em></span> must equal the length of <span class="emphasis"><em>iresfn</em></span>.
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp24802136"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kftndx</em></span> -- the index into the <span class="emphasis"><em>iftfn</em></span> table.
    </p>
        <p>
      If <span class="emphasis"><em>iftfn</em></span> contains (6, 4, 6, 8, 7, 4):

      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" type="disc">
            <li class="listitem">
              <p>
            <span class="emphasis"><em>kftndx=4</em></span> will write the contents of f7 into <span class="emphasis"><em>iresfn</em></span>.
          </p>
            </li>
            <li class="listitem">
              <p>
            <span class="emphasis"><em>kftndx=4.5</em></span> will write the average of the contents of f7 and f4 into <span class="emphasis"><em>iresfn</em></span>.
          </p>
            </li>
          </ul>
        </div>
        <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">
                <p>     
        <span class="emphasis"><em>iresfn</em></span> is only updated if the morfing index changes it's value,
        if <span class="emphasis"><em>kftindx</em></span> is static, no writing to <span class="emphasis"><em>iresfn</em></span> will occur.
      </p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp24887488"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the ftmorf opcode. It uses the file <a class="ulink" href="examples/ftmorf.csd" target="_top"><em class="citetitle">ftmorf.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp24888464"></a>
          <p class="title">
            <strong>Example 311. Example of the ftmorf 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 ftmorf.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

kndx  <span class="opc">line</span>   0, p3, 7
      <span class="opc">ftmorf</span> kndx, 1, 2
asig  <span class="opc">oscili</span> .8, 440, 2
      <span class="opc">outs</span>   asig, asig

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>

<span class="stamnt">f</span>1 0 8 -2 3 4 5 6 7 8 9 10
<span class="stamnt">f</span>2 0 1024 10 1 /*contents o<span class="stamnt">f</span> <span class="stamnt">f</span>2 dont matter */
<span class="stamnt">f</span>3 0 1024 10 1
<span class="stamnt">f</span>4 0 1024 10 0 1
<span class="stamnt">f</span>5 0 1024 10 0 0 1
<span class="stamnt">f</span>6 0 1024 10 0 0 0 1
<span class="stamnt">f</span>7 0 1024 10 0 0 0 0 1
<span class="stamnt">f</span>8 0 1024 10 0 0 0 0 0 1
<span class="stamnt">f</span>9 0 1024 10 0 0 0 0 0 0 1
<span class="stamnt">f</span>10 0 1024 10 1 1 1 1 1 1 1

<span class="stamnt">i</span>1 0 15
<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="Credits">
        <a id="idp24890736"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: William <span class="quote">“<span class="quote">Pete</span>”</span> Moss</td>
          </tr>
          <tr>
            <td>University of Texas at Austin</td>
          </tr>
          <tr>
            <td>Austin, Texas USA</td>
          </tr>
          <tr>
            <td>Jan. 2002</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in version 4.18</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ftlptim.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="ftsave.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">ftlptim </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> ftsave</td>
        </tr>
      </table>
    </div>
  </body>
</html>