Debian Codegraph @

opcodes/vtablewi.xml

raw symbols SCIP
1
2 <refentry id="vtablewi">
3 <indexterm id="IndexVtablewi"><primary>vtablewi</primary></indexterm>
4 <refentryinfo><title>Vectorial:Tables</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vtablewi</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vtablewi</refname>
11 <refpurpose>
12 Write vectors (to tables -or arrays of vectors).
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode writes vectors to tables at init time.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>vtablewi</command> indx, ifn, ixmode, inarg1 [, inarg2, inarg3 , .... , inargN ]</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 (<emphasis>ixmode</emphasis> = 0) or a 0 to 1 range (<emphasis>ixmode</emphasis> != 0).
32 </para>
33 <para>
34 <emphasis>ifn</emphasis> - table number
35 </para>
36 <para><emphasis>ixmode</emphasis> - index data mode. The default value is 0.</para>
37 <para> == 0 index is treated as a raw table location,</para>
38 <para> == 1 index is normalized (0 to 1).</para>
39 <para>
40 <emphasis>inarg1...inargN</emphasis> - input vector elements
41 </para>
42 </refsect1>
43
44 <refsect1>
45 <title>Performance</title>
46 <para>
47 This opcode is useful in all cases in which one needs to write 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>inarg1</emphasis>, <emphasis>inarg2</emphasis>, <emphasis>inarg3</emphasis>, .... <emphasis>inargN</emphasis>).
48 </para>
49 <para>
50 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>vtablewi</emphasis>, in order to correct eventual out-of-range values.
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>See also</title>
56 <para><link linkend="vectorialtables"><citetitle>Tables of vectors operators</citetitle></link></para>
57 </refsect1>
58
59 <refsect1>
60 <title>Credits</title>
61 <para>Written by Gabriel Maldonado.</para>
62 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
63 </refsect1>
64 </refentry>