<?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>Function Table Control</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="PartOpcodesOverview.html" title="Part II. Opcodes Overview" /> <link rel="prev" href="ControlTimeread.html" title="Time Reading" /> <link rel="next" href="TableReadwrit.html" title="Read/Write Operations" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Function Table Control</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="ControlTimeread.html">Prev</a> </td> <th width="60%" align="center">Part II. Opcodes Overview</th> <td width="20%" align="right"> <a accesskey="n" href="TableReadwrit.html">Next</a></td> </tr> </table> <hr /> </div> <div class="chapter"> <div class="titlepage"> <div> <div> <h2 class="title"><a id="TableTop"></a>Function Table Control</h2> </div> </div> </div> <p> Refer to the <a class="link" href="f.html" title="f Statement (or Function Table Statement)"><em class="citetitle">f score statement</em></a>, <a class="link" href="ftgen.html" title="ftgen"><em class="citetitle">ftgen</em></a>, <a class="link" href="ftgentmp.html" title="ftgentmp"><em class="citetitle">ftgentmp</em></a>, <a class="link" href="ftgenonce.html" title="ftgenonce"><em class="citetitle">ftgenonce</em></a> and the <a class="link" href="ScoreGenRef.html" title="GEN Routines"><em class="citetitle">GEN Routines</em></a> section for information on creating tables.</p> <p> Tables can be removed from memory using the <a class="link" href="ftfree.html" title="ftfree"><em class="citetitle">ftfree</em></a> opcode. </p> <p> Tables by default, require a size which is a power of two. However tables with any size can be generated by specifying the size as a negative number (see <a class="link" href="f.html" title="f Statement (or Function Table Statement)"><em class="citetitle">f score statement</em></a>). </p> <div class="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> Not all opcodes accept tables whose size is not a power of two, as this may be a requirement for internal processing. </p> </td> </tr> </table> </div> <p> For information on table access, consult the section <a class="link" href="SiggenTableacc.html" title="Table Access"><em class="citetitle">Table Access</em></a>. </p> <p> Tables for use with the <a class="link" href="loscilx.html" title="loscilx"><em class="citetitle">loscilx</em></a> opcode can be loaded using <a class="link" href="sndload.html" title="sndload"><em class="citetitle">sndload</em></a>. </p> <div class="section"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="TableQueries"></a>Table Queries</h2> </div> </div> </div> <p> Opcodes the query tables for information are: </p> <div class="itemizedlist"> <ul class="itemizedlist" style="list-style-type: disc; "> <li class="listitem"> <p>For tables loaded from a sound file (using <a class="link" href="GEN01.html" title="GEN01"><em class="citetitle">GEN01</em></a>): <a class="link" href="ftchnls.html" title="ftchnls"><em class="citetitle">ftchnls</em></a>, <a class="link" href="ftcps.html" title="ftcps"><em class="citetitle">ftcps</em></a>,<a class="link" href="ftlen.html" title="ftlen"><em class="citetitle">ftlen</em></a>, <a class="link" href="ftlptim.html" title="ftlptim"><em class="citetitle">ftlptim</em></a> and <a class="link" href="ftsr.html" title="ftsr"><em class="citetitle">ftsr</em></a></p> </li> <li class="listitem"> <p>For any table: <a class="link" href="nsamp.html" title="nsamp"><em class="citetitle">nsamp</em></a>, <a class="link" href="ftlen.html" title="ftlen"><em class="citetitle">ftlen</em></a>, <a class="link" href="tableng.html" title="tableng"><em class="citetitle">tableng</em></a></p> </li> </ul> </div> <p> </p> <p> The opcode <a class="link" href="tabsum.html" title="tabsum"><em class="citetitle">tabsum</em></a> calculates the sum of values in a table. </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="ControlTimeread.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="PartOpcodesOverview.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="TableReadwrit.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">Time Reading </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> Read/Write Operations</td> </tr> </table> </div> </body> </html>