Debian Codegraph @

opcodes/tableng.xml

raw symbols SCIP
1
2 <refentry id="tableng">
3 <indexterm id="IndexTableng"><primary>tableng</primary></indexterm>
4 <refentryinfo><title>Table Control:Table Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>tableng</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>tableng</refname>
13 <refpurpose>
14 Interrogates a function table for length.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Interrogates a function table for length.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ires <command>tableng</command> ifn</synopsis>
28
29 <synopsis>kres <command>tableng</command> kfn</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ifn</emphasis> -- Table number to be interrogated
36 </para>
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41 <para>
42 <emphasis>kfn</emphasis> -- Table number to be interrogated
43 </para>
44
45 <para>
46 <emphasis>tableng</emphasis> returns the length of the specified table. This will be a power of two number in most circumstances. It will not show whether a table has a guardpoint or not. It seems this information is not available in the table's data structure. If the specified table is not found, then 0 will be returned.
47 </para>
48
49 <para>
50 Likely to be useful for setting up code for table manipulation operations, such as <link linkend="tablemix"><citetitle>tablemix</citetitle></link> and <link linkend="tablecopy"><citetitle>tablecopy</citetitle></link>.
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Examples</title>
56 <para>
57 Here is an example of the tableng opcode. It uses the file <ulink url="examples/tableng.csd"><citetitle>tableng.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the tableng opcode.</title>
60 <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>
61 <xi:include href="examples-xml/tableng.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63
64 Its output should include a line like this:
65 <screen>
66 instr 1: isize = 115506.000
67 </screen>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="TableQueries"><citetitle>Table Control:Table Queries</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>
79 <simplelist>
80 <member>Author: Robin Whittle</member>
81 <member>Australia</member>
82 <member>May 1997</member>
83 </simplelist>
84 </para>
85 </refsect1>
86 </refentry>