Debian Codegraph @

opcodes/flroller.xml

raw symbols SCIP
1
2 <refentry id="FLroller">
3 <indexterm id="IndexFLroller"><primary>FLroller</primary></indexterm>
4 <refentryinfo><title>FLTK:Valuators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLroller</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLroller</refname>
13 <refpurpose>
14 A FLTK widget that creates a transversal knob.
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 <emphasis>FLroller</emphasis> is a sort of knob, but put transversally.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>kout, ihandle <command>FLroller</command> &quot;label&quot;, imin, imax, istep, iexp, itype, idisp, \
31 iwidth, iheight, ix, iy</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. This is used by other opcodes that modify a widget's properties (see <link linkend="ControlFltkAppearance"><citetitle>Modifying FLTK Widget Appearance</citetitle></link>). It is automatically output by <emphasis>FLroller</emphasis> and must not be set by the user label. (The user label is a double-quoted string containing some user-provided text placed near the widget.)
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>istep</emphasis> -- a floating-point number indicating the increment of valuator value corresponding to of each mouse click. The <emphasis>istep</emphasis> argument allows the user to arbitrarily slow roller's motion, enabling arbitrary precision.
54 </para>
55
56 <para>
57 <emphasis>iexp</emphasis> -- an integer number denoting the behaviour of valuator:
58 <itemizedlist>
59 <listitem><para>0 = valuator output is linear</para></listitem>
60 <listitem><para>-1 = valuator output is exponential</para></listitem>
61 </itemizedlist>
62 </para>
63
64 <para>
65 All other positive numbers for <emphasis>iexp</emphasis> indicate the number of an existing table that is used for indexing. Linear interpolation is provided in table indexing. A negative table number suppresses interpolation.
66 </para>
67
68 <warning>
69 <title>IMPORTANT!</title>
70 <para>
71 Notice that the tables used by valuators must be created with the <link linkend="ftgen"><citetitle>ftgen</citetitle></link> opcode and placed in the orchestra before the corresponding valuator. They can not placed
72 in the score. In fact, tables placed in the score are created later than the initialization of the opcodes placed in the header section of the orchestra.
73 </para>
74 </warning>
75
76 <para>
77 <emphasis>itype</emphasis> -- an integer number denoting the appearance of the valuator.
78 </para>
79
80 <para>
81 The <emphasis>itype</emphasis> argument can be set to the following values:
82
83 <itemizedlist>
84 <listitem><para>1 - horizontal roller</para></listitem>
85 <listitem><para>2 - vertical roller</para></listitem>
86 </itemizedlist>
87 </para>
88
89 <para>
90 <emphasis>idisp</emphasis> -- a handle value that was output
91 from a previous instance of the <link
92 linkend="FLvalue"><citetitle>FLvalue</citetitle></link> opcode
93 to display the current value of the current valuator in the
94 <emphasis>FLvalue</emphasis> widget itself. If the user does not want to use this feature that displays current values, it must be set to a negative number by the user.
95 </para>
96
97 <para>
98 <emphasis>iwidth</emphasis> -- width of widget.
99 </para>
100
101 <para>
102 <emphasis>iheight</emphasis> -- height of widget.
103 </para>
104
105 <para>
106 <emphasis>ix</emphasis> -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
107 </para>
108
109 <para>
110 <emphasis>iy</emphasis> -- vertical position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
111 </para>
112 </refsect1>
113
114 <refsect1>
115 <title>Performance</title>
116 <para>
117 <emphasis>kout</emphasis> -- output value
118 </para>
119
120 <para>
121 <emphasis>FLroller</emphasis> is a sort of knob, but put transversally:
122
123 <mediaobject>
124 <imageobject>
125 <imagedata fileref="images/flroller.png" format="PNG"/>
126 </imageobject>
127
128 <textobject>
129 <phrase>FLroller.</phrase>
130 </textobject>
131
132 <caption>
133 <para>FLroller.</para>
134 </caption>
135 </mediaobject>
136 </para>
137 </refsect1>
138
139 <refsect1>
140 <title>Examples</title>
141 <para>
142 Here is an example of the FLroller opcode. It uses the file <ulink url="examples/FLroller.csd"><citetitle>FLroller.csd</citetitle></ulink>.
143
144 <example>
145 <title>Example of the FLroller opcode.</title>
146
147 <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>
148 <xi:include href="examples-xml/FLroller.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
149 </example>
150 </para>
151 </refsect1>
152
153 <refsect1>
154 <title>See Also</title>
155 <para>
156 <link linkend="FLcount"><citetitle>FLcount</citetitle></link>,
157 <link linkend="FLjoy"><citetitle>FLjoy</citetitle></link>,
158 <link linkend="FLknob"><citetitle>FLknob</citetitle></link>,
159 <link linkend="FLslider"><citetitle>FLslider</citetitle></link>,
160 <link linkend="FLtext"><citetitle>FLtext</citetitle></link>
161 </para>
162 </refsect1>
163
164 <refsect1>
165 <title>Credits</title>
166 <para>Author: &namegabriel;</para>
167 <para>New in version 4.22</para>
168 <para>Example written by Iain McCurdy, edited by &namekevin;.</para>
169 </refsect1>
170 </refentry>