Debian Codegraph @

opcodes/tabw.xml

raw symbols SCIP
1
2 <refentry id="tabw">
3 <indexterm id="IndexTabw"><primary>tabw</primary></indexterm>
4
5 <refentryinfo><title>Signal Generators:Table Access</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>tabw</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>tabw</refname>
12 <refpurpose>
13 Fast table opcodes.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Fast table opcodes. Faster than
21 <link linkend="tablew"><citetitle>tablew</citetitle></link> because it does not
22 allow wrap-around and limit. Has
23 been implemented in order to provide fast access to
24 arrays.
25 <!-- Support non-power of two tables (can be generated by any -->
26 <!-- GEN function by giving a negative length value). -->
27 </para>
28 </refsect1>
29
30 <refsect1>
31 <title>Syntax</title>
32 <synopsis><command>tabw</command> ksig, kndx, ifn [,ixmode]</synopsis>
33 <synopsis><command>tabw</command> asig, andx, ifn [,ixmode]</synopsis>
34 </refsect1>
35
36 <refsect1>
37 <title>Initialization</title>
38 <para>
39 <emphasis>ifn</emphasis> -- table number
40 </para>
41 <para>
42 <emphasis>ixmode</emphasis> -- defaults to zero. If zero
43 <emphasis>xndx</emphasis> range matches the length of the table;
44 if non zero <emphasis>xndx</emphasis> has a 0 to 1 range.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>
51 <emphasis>andx, kndx</emphasis> -- table index.
52 </para>
53 <para>
54 <emphasis>tabw</emphasis> opcode is similar to <emphasis>tablew</emphasis>
55 but are faster, and use rounding of the index.
56 </para>
57 <para>
58 Special care of index value must be taken into account. Index
59 values out of the table allocated space will crash Csound.
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>Examples</title>
65 <para>
66 Here is an example of the tabw opcode. It uses the file <ulink url="examples/tabw.csd"><citetitle>tabw.csd</citetitle></ulink>.
67 <example>
68 <title>Example of the tabw opcode.</title>
69 <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>
70 <xi:include href="examples-xml/tabw.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
71 </example>
72 </para>
73 </refsect1>
74
75 <refsect1>
76 <title>See Also</title>
77 <para><link linkend="SiggenTableacc"><citetitle>Table Access</citetitle></link></para>
78 </refsect1>
79
80 <refsect1>
81 <title>Credits</title>
82 <para>Written by &namegabriel;.</para>
83 </refsect1>
84 </refentry>