<?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>tablecopy</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="table3.html" title="table3" /> <link rel="next" href="tablefilter.html" title="tablefilter" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">tablecopy</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="table3.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="tablefilter.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="tablecopy"> <a id="tablecopy"></a> <div class="titlepage"></div> <a id="IndexTablecopy" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">tablecopy</span> </h2> <p>tablecopy — Simple, fast table copy opcode. </p> </div> <div class="refsect1" title="Description"> <a id="id3268305"></a> <h2>Description</h2> <p> Simple, fast table copy opcode. </p> </div> <div class="refsect1" title="Syntax"> <a id="id3269065"></a> <h2>Syntax</h2> <pre class="synopsis"><span class="command"><strong>tablecopy</strong></span> kdft, ksft</pre> </div> <div class="refsect1" title="Performance"> <a id="id3269082"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kdft</em></span> -- Destination function table. </p> <p> <span class="emphasis"><em>ksft</em></span> -- Number of source function table. </p> <p> <span class="emphasis"><em>tablecopy</em></span> -- Simple, fast table copy opcode. Takes the table length from the destination table, and reads from the start of the source table. For speed reasons, does not check the source length - just copies regardless - in <span class="quote">“<span class="quote">wrap</span>”</span> mode. This may read through the source table several times. A source table with length 1 will cause all values in the destination table to be written to its value. </p> <p> <span class="emphasis"><em>tablecopy</em></span> cannot read or write the guardpoint. To read it use <a class="link" href="table.html" title="table"><em class="citetitle">table</em></a>, with <span class="emphasis"><em>ndx</em></span> = the table length. Likewise use table write to write it. </p> <p> To write the guardpoint to the value in location 0, use <a class="link" href="tablegpw.html" title="tablegpw"><em class="citetitle">tablegpw</em></a>. </p> <p> This is primarily to change function tables quickly in a real-time situation. </p> </div> <div class="refsect1" title="See Also"> <a id="id3269158"></a> <h2>See Also</h2> <p> <a class="link" href="tablegpw.html" title="tablegpw"><em class="citetitle">tablegpw</em></a>, <a class="link" href="tablemix.html" title="tablemix"><em class="citetitle">tablemix</em></a>, <a class="link" href="tableicopy.html" title="tableicopy"><em class="citetitle">tableicopy</em></a>, <a class="link" href="tableigpw.html" title="tableigpw"><em class="citetitle">tableigpw</em></a>, <a class="link" href="tableimix.html" title="tableimix"><em class="citetitle">tableimix</em></a> </p> </div> <div class="refsect1" title="Credits"> <a id="id3269208"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Robin Whittle</td> </tr> <tr> <td>Australia</td> </tr> <tr> <td>May 1997</td> </tr> </table> <p> </p> <p>New in version 3.47</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="table3.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="tablefilter.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">table3 </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> tablefilter</td> </tr> </table> </div> </body> </html>