Debian Codegraph @

opcodes/table3.xml

raw symbols SCIP
1
2 <refentry id="table3">
3 <indexterm id="IndexTable3"><primary>table3</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Table Access</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>table3</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>table3</refname>
11 <refpurpose>
12 Accesses table values by direct indexing with cubic interpolation.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Accesses table values by direct indexing with cubic interpolation.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>table3</command> andx, ifn [, ixmode] [, ixoff] [, iwrap]</synopsis>
26
27 <synopsis>ires <command>table3</command> indx, ifn [, ixmode] [, ixoff] [, iwrap]</synopsis>
28
29 <synopsis>kres <command>table3</command> kndx, ifn [, ixmode] [, ixoff] [, iwrap]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ifn</emphasis> -- function table number.
36 </para>
37
38 <para>
39 <emphasis>ixmode</emphasis> (optional) -- index data mode. The default value is 0.
40 <itemizedlist>
41 <listitem><para>0 = raw index</para></listitem>
42 <listitem><para>1 = normalized (0 to 1)</para></listitem>
43 </itemizedlist>
44 </para>
45
46 <para>
47 <emphasis>ixoff</emphasis> (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.
48 </para>
49
50 <para>
51 <emphasis>iwrap</emphasis> (optional) -- wraparound index flag. The default value is 0.
52 <itemizedlist>
53 <listitem>
54 <para>0 = nowrap (index &lt; 0 treated as index=0; index &gt; tablesize sticks at index=size)</para>
55 </listitem>
56
57 <listitem>
58 <para>1 = wraparound.</para>
59 </listitem>
60 </itemizedlist>
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>Performance</title>
66 <para>
67 <emphasis>table3</emphasis> is identical to <link linkend="tablei"><citetitle>tablei</citetitle></link>, except that it uses cubic interpolation. (New in Csound version 3.50).
68 </para>
69 <para>
70 <warning>
71 Reading tables which contain stereo- or multichannel-information
72 probably causes unwanted noise as the opcode interpolates between
73 subsequent positions of the table regardless of the origin of its
74 content. Usually just the content of one channel is expected
75 Consider using <emphasis>loscilx</emphasis> instead.
76 </warning>
77 </para>
78 </refsect1>
79
80 <refsect1>
81 <title>See Also</title>
82 <para><link linkend="SiggenTableacc"><citetitle>Table Access</citetitle></link></para>
83 <para> More information on this opcode: <ulink url="http://www.csoundjournal.com/issue12/genInstruments.html"><citetitle>http://www.csoundjournal.com/issue12/genInstruments.html</citetitle></ulink> , written by Jacob Joaquin </para>
84 </refsect1>
85
86 </refentry>