<?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>ptable3</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="ptablei.html" title="ptablei" /> <link rel="next" href="ptablew.html" title="ptablew" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">ptable3</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="ptablei.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="ptablew.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="ptable3"> <a id="ptable3"></a> <div class="titlepage"></div> <a id="IndexPtable3" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">ptable3</span> </h2> <p>ptable3 — Accesses table values by direct indexing with cubic interpolation. </p> </div> <div class="refsect1" title="Description"> <a id="idp37460144"></a> <h2>Description</h2> <p> Accesses table values by direct indexing with cubic interpolation. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp37504008"></a> <h2>Syntax</h2> <pre class="synopsis">ares <span class="command"><strong>ptable3</strong></span> andx, ifn [, ixmode] [, ixoff] [, iwrap]</pre> <pre class="synopsis">ires <span class="command"><strong>ptable3</strong></span> indx, ifn [, ixmode] [, ixoff] [, iwrap]</pre> <pre class="synopsis">kres <span class="command"><strong>ptable3</strong></span> kndx, ifn [, ixmode] [, ixoff] [, iwrap]</pre> </div> <div class="refsect1" title="Initialization"> <a id="idp37506584"></a> <h2>Initialization</h2> <p> <span class="emphasis"><em>ifn</em></span> -- function table number. </p> <p> <span class="emphasis"><em>ixmode</em></span> (optional) -- index data mode. The default value is 0. </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p>0 = raw index</p> </li> <li class="listitem"> <p>1 = normalized (0 to 1)</p> </li> </ul> </div> <p> </p> <p> <span class="emphasis"><em>ixoff</em></span> (optional) -- amount by which index is to be offset. For a table with origin at center, use tablesize/2 (raw) or .5 (normalized). The default value is 0. </p> <p> <span class="emphasis"><em>iwrap</em></span> (optional) -- wraparound index flag. The default value is 0. </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p>0 = nowrap (index < 0 treated as index=0; index > tablesize sticks at index=size)</p> </li> <li class="listitem"> <p>1 = wraparound.</p> </li> </ul> </div> <p> </p> </div> <div class="refsect1" title="Performance"> <a id="idp37510824"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>ptable3</em></span> is identical to <a class="link" href="table3.html" title="table3"><em class="citetitle">table3</em></a>, except that it uses does not require the table to have a power of two size. </p> </div> <div class="refsect1" title="See Also"> <a id="idp37512208"></a> <h2>See Also</h2> <p> <a class="link" href="table.html" title="table"><em class="citetitle">table</em></a>, <a class="link" href="tablei.html" title="tablei"><em class="citetitle">tablei</em></a>, <a class="link" href="table3.html" title="table3"><em class="citetitle">table3</em></a>, <a class="link" href="ptable.html" title="ptable"><em class="citetitle">ptable</em></a>, <a class="link" href="ptablei.html" title="ptablei"><em class="citetitle">ptablei</em></a>, <a class="link" href="oscil1.html" title="oscil1"><em class="citetitle">oscil1</em></a>, <a class="link" href="oscil1i.html" title="oscil1i"><em class="citetitle">oscil1i</em></a>, <a class="link" href="osciln.html" title="osciln"><em class="citetitle">osciln</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="idp37516624"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: John ffitch</td> </tr> <tr> <td>Jan 2012</td> </tr> </table> <p> </p> <p>New in Csound version 5.16</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="ptablei.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="ptablew.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">ptablei </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> ptablew</td> </tr> </table> </div> </body> </html>