Debian Codegraph @

opcodes/vtabwk.xml

raw symbols SCIP
1
2 <refentry id="vtabwk">
3 <indexterm id="IndexVtabwk"><primary>vtabwk</primary></indexterm>
4 <refentryinfo><title>Vectorial:Tables</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vtabwk</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vtabwk</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 k-rate.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>vtabwk</command> kndx, ifn, kinarg1 [, kinarg2, kinarg3 , .... , kinargN ]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para><emphasis>ifn</emphasis> - table number</para>
31 </refsect1>
32
33 <refsect1>
34 <title>Performance</title>
35 <para>
36 <emphasis>kndx</emphasis> - Index into f-table, a positive number range matching the table length
37 </para>
38 <para>
39 <emphasis>kinarg1...kinargN</emphasis> - input vector elements
40 </para>
41 <para>
42 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>kinarg1</emphasis>, <emphasis>kinarg2</emphasis>, <emphasis>kinarg3</emphasis>, .... <emphasis>kinargN</emphasis>).
43 </para>
44 <para>
45 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>vtabwk</emphasis>, in order to correct eventual out-of-range values.
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>See also</title>
51 <para><link linkend="vectorialtables"><citetitle>Tables of vectors operators</citetitle></link></para>
52 </refsect1>
53
54 <refsect1>
55 <title>Credits</title>
56 <para>Written by Gabriel Maldonado.</para>
57 <para>New in Csound 5 (Previously available only on CsoundAV)</para>
58 </refsect1>
59 </refentry>