Debian Codegraph @

opcodes/cell.xml

raw symbols SCIP
1 <refentry id="cell">
2 <indexterm id="IndexCell"><primary>cell</primary></indexterm>
3 <refentryinfo><title>Vectorial:Cellular Automata</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>cell</refentrytitle>
6 </refmeta>
7
8
9
10 <refnamediv>
11 <refname>cell</refname>
12
13 <refpurpose>
14 Cellular Automaton
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>Plugin opcode in cellular</para>
21 <para>
22 One-Dimensional Cellular Automaton. This opcode is the
23 modified version of <emphasis>vcella</emphasis> by Gabriel Maldonado.
24 </para>
25 </refsect1>
26
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis><command>cell</command> ktrig, kreinit, ioutFunc, initStateFunc, iRuleFunc, ielements</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>ioutFunc</emphasis> -- number of the table where the state of each cell is stored.
37 </para>
38
39 <para>
40 <emphasis>initStateFunc</emphasis> -- number of the table
41 containing the inital states of cells.
42 </para>
43
44 <para>
45 <emphasis>iRuleFunc</emphasis> -- number of a lookup table
46 containing the 8-bit rule.
47 </para>
48
49 <para>
50 <emphasis>ielements</emphasis> -- total number of cells in a row.
51 </para>
52
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>ktri</emphasis> -- trigger signal. Each time it is
59 non-zero, a new generation of cells is evaluated.
60 </para>
61
62 <para>
63 <emphasis>kreinit</emphasis> -- reset signal. Each time it is
64 non-zero, state of all cells is forced to be that of
65 initStateFunc.
66 </para>
67
68 <para>
69 <emphasis>cell</emphasis> models a classical 1D cellular
70 automaton and stores the state of each cell in the table
71 identified by <emphasis>ioutFunc</emphasis>.
72 </para>
73 <para>
74 <emphasis>initStateFunc</emphasis> is an input vector containing
75 the inital value of the row of cells, while
76 <emphasis>iRuleFunc</emphasis> is an input vector containing the
77 chosen rule in the binary form (least significant bit first).
78 </para>
79 <para>
80 A new generation of cells is evaluated each time
81 <emphasis>ktrig</emphasis> contains a non-zero value. Also the
82 status of all cells can be forced to assume the status
83 corresponding to the contents of
84 <emphasis>initStateFunc</emphasis> each time
85 <emphasis>kreinit</emphasis> contains a non-zero value.
86 </para>
87 <para>
88 Note that each cell is supposed to be in one of two possible
89 states (1 = "alive", 0 = "dead"), although fractional values
90 should work too, because truncation is used.
91 </para>
92 </refsect1>
93
94 <refsect1>
95 <title>Examples</title>
96 <para>
97 Here is a simple example of the cell opcode. It uses the file
98 <ulink
99 url="examples/cell.csd"><citetitle>cell.csd</citetitle></ulink>.
100 <example>
101 <title>A simple example of the cell opcode.</title>
102 <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>
103 <xi:include href="examples-xml/cell.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
104 </example>
105 </para>
106 </refsect1>
107
108 <refsect1>
109 <title>See Also</title>
110 <para>
111 <link linkend="SiggenModels"><citetitle>Models and Emulations</citetitle></link>
112 </para>
113 </refsect1>
114
115 <refsect1>
116 <title>Credits</title>
117 <para>
118 <simplelist>
119 <member>Author: Gleb Rogozinsky</member>
120 <member>October 2011</member>
121 </simplelist>
122 </para>
123
124 <para>New in Csound version 5.16.6</para>
125 </refsect1>
126 </refentry>
127