Debian Codegraph @

opcodes/fillarray.xml

raw symbols SCIP
1
2 <refentry id="fillarray">
3 <indexterm id="IndexFillarray"><primary>fillarray</primary></indexterm>
4
5 <refentryinfo><title>Table Control:Table Queries</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>fillarray</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>fillarray</refname>
12 <refpurpose>
13 Generate a vector with initial values.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Generate a vector (one-dimensional k-rate array) with a sequence
21 of numeric or string values.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>karray[] <command>fillarray</command> ival1, ival2,.....ivaln</synopsis>
28 <synopsis>karray <command>fillarray</command> ival1, ival2,.....ivaln</synopsis>
29 <synopsis>karray <command>fillarray</command> kval1, kval2,.....kvaln</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ival1,...ivaln</emphasis> -- values to place in the vector.
36 </para>
37 <para>
38 In the second form the answer array must be pre-declared, and it
39 may be a multidimensional array which if filled in row-major
40 order.
41 </para>
42 </refsect1>
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 In the third form the vector is regenerated at k-rate with values
47 <emphasis>kval1,..., kvaln</emphasis>.
48 </para>
49 </refsect1>
50 <refsect1>
51 <title>Examples</title>
52 <para>
53 Here is an example of the fillarray opcode. It uses the file <ulink url="examples/fillarray.csd"><citetitle>fillarray.csd</citetitle></ulink>.
54 <example>
55 <title>Example of the fillarray opcode.</title>
56 <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>
57 <xi:include href="examples-xml/fillarray.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
58 </example>
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>See also</title>
64 <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para>
65 </refsect1>
66
67 <refsect1>
68 <title>Credits</title>
69 <para>
70 <simplelist>
71 <member>Author: &namejohn;</member>
72 <member>Codemist Ltd</member>
73 <member>2013</member>
74 </simplelist>
75 </para>
76 <para>New in version 6.00</para>
77 <para>Third, k-rate, form new in 6.12</para>
78 </refsect1>
79 </refentry>