Debian Codegraph @

opcodes/ftset.xml

raw symbols SCIP
1
2 <refentry id="ftset">
3 <indexterm id="Indexftset"><primary>ftset</primary></indexterm>
4 <refentryinfo><title>Table Control:Read/Write Operations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ftset</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>ftset</refname>
10 <refpurpose>
11 Sets multiple elements of a table to a given value
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 Sets multiple elements of a table to a given value. All elements of the table, or a slice
19 (start:end:step) can be set at once. If all parameters are i-time variables, ftset will
20 run only at init-time. Otherwise ftset is executed at each cycle.
21 </para>
22 <para>Plugin opcode in emugens</para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>ftset</command> ktablenum, kvalue [, kstart=0, kend=0, kstep=1 ]</synopsis>
28 <synopsis><command>ftset</command> itablenum, ivalue [, istart=0, iend=0, istep=1 ]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 </refsect1>
34 <refsect1>
35 <title>Performance</title>
36 <para>
37 <emphasis>ktablenum</emphasis> -- the number of the table to be modified
38 </para>
39 <para>
40 <emphasis>kvalue</emphasis> -- the value to write to the table
41 </para>
42 <para>
43 <emphasis>kstart</emphasis> -- the start index to modify (defaults to 0)
44 </para>
45 <para>
46 <emphasis>kend</emphasis> -- the end index to modify. Defaults to 0, which indicates the
47 end of the table. A negative index can be used to count from the end, so for example -1
48 will modifiy the table without changing the last element.
49 </para>
50 <para>
51 <emphasis>kstep</emphasis> -- the increment to use between modified indexes. Defaults to
52 1, which means to modify every element between start and end
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the ftset opcode. It uses the file <ulink url="examples/ftset.csd">
60 <citetitle>ftset.csd</citetitle></ulink>.
61 <example>
62 <title>Example of the ftset opcode.</title>
63 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time
64 Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line
65 Flags</citetitle></link> for more information on using command line flags.</para>
66 <xi:include href="examples-xml/ftset.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="TableReadwrit"><citetitle>Read/Write Operations</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>By: &nameeduardo; 2020</para>
79 </refsect1>
80 </refentry>