| 1 |
|
| 2 |
<refentry id="tab"> |
| 3 |
<indexterm id="IndexTab"><primary>tab</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal Generators:Table Access</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>tab</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>tab</refname> |
| 11 |
<refpurpose> |
| 12 |
Fast table opcode. |
| 13 |
</refpurpose> |
| 14 |
</refnamediv> |
| 15 |
|
| 16 |
<refsect1> |
| 17 |
<title>Description</title> |
| 18 |
<para> |
| 19 |
Fast table opcode. Faster than |
| 20 |
<link linkend="table"><citetitle>table</citetitle></link> because it does not |
| 21 |
allow wrap-around and limit. Has been implemented in order to |
| 22 |
provide fast access to arrays. |
| 23 |
|
| 24 |
|
| 25 |
</para> |
| 26 |
</refsect1> |
| 27 |
|
| 28 |
<refsect1> |
| 29 |
<title>Syntax</title> |
| 30 |
<synopsis>kr <command>tab</command> kndx, ifn[, ixmode]</synopsis> |
| 31 |
<synopsis>ar <command>tab</command> xndx, ifn[, ixmode]</synopsis> |
| 32 |
</refsect1> |
| 33 |
|
| 34 |
<refsect1> |
| 35 |
<title>Initialization</title> |
| 36 |
<para> |
| 37 |
<emphasis>ifn</emphasis> -- table number |
| 38 |
</para> |
| 39 |
<para> |
| 40 |
<emphasis>ixmode</emphasis> -- defaults to zero. If zero |
| 41 |
<emphasis>xndx</emphasis> range matches the length of the table; |
| 42 |
if non zero <emphasis>xndx</emphasis> has a 0 to 1 range. |
| 43 |
</para> |
| 44 |
<para> |
| 45 |
<emphasis>indx</emphasis> -- table index |
| 46 |
</para> |
| 47 |
</refsect1> |
| 48 |
|
| 49 |
<refsect1> |
| 50 |
<title>Performance</title> |
| 51 |
<para> |
| 52 |
<emphasis>andx, kndx</emphasis> -- table index. |
| 53 |
</para> |
| 54 |
<para> |
| 55 |
<emphasis>tab</emphasis> and <emphasis>tabw</emphasis> |
| 56 |
opcodes are similar to <emphasis>table</emphasis> but are |
| 57 |
faster, and use rounding of the index. |
| 58 |
</para> |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
</refsect1> |
| 64 |
|
| 65 |
<refsect1> |
| 66 |
<title>Examples</title> |
| 67 |
<para> |
| 68 |
Here is an example of the tab opcode. It uses the file <ulink url="examples/tab.csd"><citetitle>tab.csd</citetitle></ulink>. |
| 69 |
<example> |
| 70 |
<title>Example of the tab opcode.</title> |
| 71 |
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 72 |
<xi:include href="examples-xml/tab.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 73 |
</example> |
| 74 |
</para> |
| 75 |
</refsect1> |
| 76 |
|
| 77 |
<refsect1> |
| 78 |
<title>See Also</title> |
| 79 |
<para><link linkend="SiggenTableacc"><citetitle>Table Access</citetitle></link></para> |
| 80 |
</refsect1> |
| 81 |
|
| 82 |
<refsect1> |
| 83 |
<title>Credits</title> |
| 84 |
<para>Written by &namegabriel;.</para> |
| 85 |
</refsect1> |
| 86 |
</refentry> |