Debian Codegraph @

opcodes/count.xml

raw symbols SCIP
1
2 <!--Change refentry id and indexterm id-->
3 <refentry id="count">
4 <indexterm id="IndexCount"><primary>count</primary></indexterm>
5 <!--Make sure the category below is a valid one! See categories.py-->
6 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>count</refentrytitle>
9 </refmeta>
10
11 <refnamediv>
12 <refname>count</refname>
13 <refpurpose>
14 Get the next value from a counter.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>Plugin opcode in counter.</para>
21 <para>
22 Get the next value from a counter by adding the increment and
23 keeping the counter in the declared range.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>kval <command>count</command> icnt</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>icnt</emphasis> -- the handle of a counter object from
36 a call to <emphasis>cntCreate</emphasis>.
37 </para>
38
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para>
44 Calculate the next value from the counter object and return that
45 value.
46 </para>
47 <para>
48 <emphasis>kval</emphasis> -- returned value.
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>Examples</title>
54 <para>
55 Here is an example of the count opcode. It uses the file <ulink url="examples/counter.csd"><citetitle>counter.csd</citetitle></ulink>.
56 <example>
57 <title>Example of the count opcode.</title>
58 <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>
59 <xi:include href="examples-xml/counter.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>See also</title>
66 <para><link linkend="ControlPgmctl"><citetitle>Program Flow Control: Counter</citetitle></link></para>
67 </refsect1>
68
69 <refsect1>
70 <title>Credits</title>
71 <para>By: &namejohn; June 2020</para>
72 <para>New in version 6.15</para>
73 </refsect1>
74
75 </refentry>
76