Debian Codegraph @

opcodes/flcount.xml

raw symbols SCIP
1
2 <refentry id="FLcount">
3 <indexterm id="IndexFLcount"><primary>FLcount</primary></indexterm>
4 <refentryinfo><title>FLTK:Valuators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLcount</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLcount</refname>
13 <refpurpose>
14 A FLTK widget opcode that creates a counter.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac.
22 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
23 <para>
24 Allows the user to increase/decrease a value with mouse clicks on a corresponding arrow button.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>kout, ihandle <command>FLcount</command> &quot;label&quot;, imin, imax, istep1, istep2, itype, \
31 iwidth, iheight, ix, iy, iopcode [, kp1] [, kp2] [, kp3] [...] [, kpN]</synopsis>
32 </refsect1>
33
34 <refsect1>
35 <title>Initialization</title>
36 <para>
37 <emphasis>ihandle</emphasis> -- a handle value (an integer number) that unequivocally references a corresponding widget. Used by further opcodes that changes some valuator's properties. It is automatically set by the corresponding valuator.
38 </para>
39
40 <para>
41 <emphasis><quote>label</quote></emphasis> -- a double-quoted string containing some user-provided text, placed near the corresponding widget.
42 </para>
43
44 <para>
45 <emphasis>imin</emphasis> -- minimum value of output range
46 </para>
47
48 <para>
49 <emphasis>imax</emphasis> -- maximum value of output range
50 </para>
51
52 <para>
53 <emphasis>istep1</emphasis> -- a floating-point number indicating the increment of valuator value corresponding to of each mouse click. <emphasis>istep1</emphasis> is for fine adjustments.
54 </para>
55
56 <para>
57 <emphasis>istep2</emphasis> -- a floating-point number indicating the increment of valuator value corresponding to of each mouse click. <emphasis>istep2</emphasis> is for coarse adjustments.
58 </para>
59
60 <para>
61 <emphasis>itype</emphasis> -- an integer number denoting the appearance of the valuator.
62 </para>
63
64 <para>
65 <emphasis>iwidth</emphasis> -- width of widget.
66 </para>
67
68 <para>
69 <emphasis>iheight</emphasis> -- height of widget.
70 </para>
71
72 <para>
73 <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
74 </para>
75
76 <para>
77 <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
78 </para>
79
80 <para>
81 <emphasis>iopcode</emphasis> -- score opcode type. You have to provide the ascii code of the letter corresponding to the score opcode. At present time only <quote>i</quote> (ascii code 105) score statements are supported. A zero value refers to a default value of <quote>i</quote>. So both 0 and 105 activates the <link linkend="i"><citetitle>i</citetitle></link> opcode. A value of -1 disables this opcode feature.
82 </para>
83 </refsect1>
84
85 <refsect1>
86 <title>Performance</title>
87 <para>
88 <emphasis>kout</emphasis> -- output value
89 </para>
90
91 <para>
92 <emphasis>kp1</emphasis>, <emphasis>kp2</emphasis>, ..., <emphasis>kpN</emphasis> -- arguments of the activated instruments.
93 </para>
94
95 <para>
96 <emphasis>FLcount</emphasis> allows the user to increase/decrease a value with mouse clicks on corresponding arrow buttons:
97
98 <mediaobject>
99 <imageobject>
100 <imagedata fileref="images/flcount.png" format="PNG"/>
101 </imageobject>
102
103 <textobject>
104 <phrase>FLcount.</phrase>
105 </textobject>
106
107 <caption>
108 <para>FLcount.</para>
109 </caption>
110 </mediaobject>
111 </para>
112
113 <para>
114 There are two kind of arrow buttons, for larger and smaller steps. Notice that <emphasis>FLcount</emphasis> not only outputs a value and a handle, but can also activate (schedule) an instrument provided by the user each time a button is pressed. P-fields of the activated instrument are <emphasis>kp1</emphasis> (instrument number), <emphasis>kp2</emphasis> (action time), <emphasis>kp3</emphasis> (duration) and so on with user p-fields. If the <emphasis>iopcode</emphasis> argument is set to a negative number, no instrument is activated. So this feature is optional.
115 </para>
116 </refsect1>
117
118 <refsect1>
119 <title>Examples</title>
120 <para>
121 Here is an example of the FLcount opcode. It uses the file <ulink url="examples/FLcount.csd"><citetitle>FLcount.csd</citetitle></ulink>.
122
123 <example>
124 <title>Example of the FLcount opcode.</title>
125
126 <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>
127 <xi:include href="examples-xml/FLcount.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
128 </example>
129 </para>
130 </refsect1>
131
132 <refsect1>
133 <title>See Also</title>
134 <para>
135 <link linkend="FLjoy"><citetitle>FLjoy</citetitle></link>,
136 <link linkend="FLknob"><citetitle>FLknob</citetitle></link>,
137 <link linkend="FLroller"><citetitle>FLroller</citetitle></link>,
138 <link linkend="FLslider"><citetitle>FLslider</citetitle></link>,
139 <link linkend="FLtext"><citetitle>FLtext</citetitle></link>
140 </para>
141 </refsect1>
142
143 <refsect1>
144 <title>Credits</title>
145 <para>Author: &namegabriel;</para>
146 <para>New in version 4.22</para>
147 <para>Example written by Iain McCurdy, edited by &namekevin;.</para>
148 </refsect1>
149 </refentry>