Debian Codegraph @

opcodes/vtabi.xml

raw symbols SCIP
1
2 <refentry id="vtabi">
3 <indexterm id="IndexVtabi"><primary>vtabi</primary></indexterm>
4 <refentryinfo><title>Vectorial:Tables</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vtabi</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vtabi</refname>
11 <refpurpose>
12 Read vectors (from tables -or arrays of vectors).
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode reads vectors from tables.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>vtabi</command> indx, ifn, iout1 [, iout2, iout3, .... , ioutN ]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>indx</emphasis> - Index into f-table, either a positive number range matching the table length</para>
32 <para>
33 <emphasis>ifn</emphasis> - table number
34 </para>
35 <para>
36 <emphasis>iout1...ioutN</emphasis> - output vector elements
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 This opcode is useful in all cases in which one needs to access sets of values associated to unique indexes (for example, multi-channel samples, STFT bin frames, spectral formants, p-field based scores etc.). The number of elements of each vector (length of the vector) is determined by the number of optional arguments on the right (<emphasis>iout1</emphasis>, <emphasis>iout2</emphasis>, <emphasis>iout3</emphasis>, .... <emphasis>ioutN</emphasis>).
44 </para>
45 <para>
46 Notice that no wrap nor limit mode is implemented. So, if an index attempt to access to a zone not allocated by the table, Csound will probably crash. However this drawback can be easily avoided by using wrap or limit opcodes applied to indexes before using <emphasis>vtabi</emphasis>, in order to correct eventual out-of-range values.
47 </para>
48 <para>
49 The <command>vtab</command> family is similar to <command>vtable</command>, but is much faster because interpolation is not available, table number cannot be changed after initialization, and only raw indexing is supported.
50 </para>
51 <note>
52 <para>
53 Notice that <emphasis>vtabi</emphasis>'s output arguments are placed at the right of the opcode name, differently from usual (this style is already used in other opcodes using undefined lists of output arguments such as <link linkend="fin"><citetitle>fin</citetitle></link> or <link linkend="trigseq"><citetitle>trigseq</citetitle></link>).
54 </para>
55 </note>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 For an example of the vtabi opcode usage, see <link linkend="vtablei"><citetitle>vtablei</citetitle></link>.
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="vectorialtables"><citetitle>Tables of vectors operators</citetitle></link></para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>Written by Gabriel Maldonado.</para>
73 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
74 </refsect1>
75 </refentry>