Debian Codegraph @

opcodes/flslidbnk2setk.xml

raw symbols SCIP
1
2 <refentry id="FLslidBnk2Setk">
3 <indexterm id="IndexFLslidBnk2Setk"><primary>FLslidBnk2Setk</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLslidBnk2Setk</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>FLslidBnk2Setk</refname>
11 <refpurpose>
12 modify the values of a slider bank.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 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.
20 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
21 <para>
22 <emphasis>FLslidBnk2Setk</emphasis> modifies the values of a slider bank according to an array of values stored in a table.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>FLslidBnk2Setk</command> ktrig, ihandle, ifn [, istartIndex, istartSlid, inumSlid]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ihandle</emphasis> - handle of the sliderBnk (to be used to set its values).
35 </para>
36 <para>
37 <emphasis>ifn</emphasis> - number of a table containing an array of values to set each slider to.
38 </para>
39 <para>
40 <emphasis>istartIndex</emphasis> - (optional) starting index of the table element of to be evaluated firstly. Default value is zero
41 </para>
42 <para>
43 <emphasis>istartSlid</emphasis> - (optional) starting slider to be evaluated. Default 0, denoting the first slider.
44 </para>
45 <para>
46 <emphasis>inumSlid</emphasis> - (optional) number of sliders to be updated. Default 0, denoting all sliders.
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Performance</title>
52 <para>
53 <emphasis>ktrig</emphasis> – the output of <emphasis>FLslidBnk2Setk</emphasis> consists of a trigger that informs if sliders have to be updated or not. A non-zero value forces the slider to be updated.
54 </para>
55 <para>
56 <emphasis>FLslidBnk2Setk</emphasis> is similar to <link linkend="FLslidBnkSet"><citetitle>FLslidBnkSet</citetitle></link> but allows k-rate to modify the values of <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link> (<emphasis>FLslidBnk2Setk</emphasis> can also be used with <link linkend="FLvslidBnk2"><citetitle>FLvslidBnk2</citetitle></link>, obtaining identical result). It also allows the slider bank to be joined with MIDI. If you are using MIDI (for instance, when using the <link linkend="slider8table"><citetitle>slider8table</citetitle></link> opcode), <emphasis>FLslidBnk2Setk</emphasis> changes the values of <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link> bank of sliders to a set of values located in a table. This opcode is actually able to serve as a MIDI bridge to the <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link> widget when used together with the <emphasis>sliderXXtable</emphasis> set of opcodes (see <link linkend="slider8table"><citetitle>slider8table</citetitle></link> entry for more information). Notice, that, when you want to use table indexing as a curve response, it is not possible to do it directly in the <emphasis>iconfigtable</emphasis> configuration of <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link>, when you intend to use the <emphasis>FLslidBnk2Setk</emphasis> opcode. In fact, corresponding <emphasis>inputTable</emphasis> element of <emphasis>FLslidBnk2Setk</emphasis> must be set in linear mode and respect the 0 to 1 range. Even the corresponding elements of <emphasis>sliderXXtable</emphasis> must be set in linear mode and in the normalized range. You can do table indexing later, by using the <link linkend="tab"><citetitle>tab</citetitle></link> and <link linkend="tb"><citetitle>tb</citetitle></link> opcodes, and rescaling output according to max and min values. By the other hand, it is possible to use linear and exponential curve response directly, by setting the actual min-max range and flag both in the <emphasis>iconfigtable</emphasis> of corresponding <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link> and in <emphasis>sliderXXtable</emphasis>.
57 </para>
58 <para>
59 <emphasis>FLslidBnk2Setk</emphasis> the k-rate version of <link linkend="FLslidBnk2Set"><citetitle>FLslidBnk2Set</citetitle></link>.
60 </para>
61
62 </refsect1>
63 <refsect1>
64 <title>Examples</title>
65 <para>
66 Here is an example of the FLslidBnk2Setk opcode. It uses the file <ulink url="examples/FLslidBnk2Setk.csd"><citetitle>FLslidBnk2Setk.csd</citetitle></ulink>.
67
68 <example>
69 <title>Example of the FLslidBnk2Setk opcode.</title>
70
71 <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>
72 <xi:include href="examples-xml/FLslidBnk2Setk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
73 </example>
74 </para>
75 </refsect1>
76 <refsect1>
77 <title>See Also</title>
78 <para>
79 <link linkend="FLslider"><citetitle>FLslider</citetitle></link>,
80 <link linkend="FLslidBnkGetHandle"><citetitle>FLslidBnkGetHandle</citetitle></link>,
81 <link linkend="FLslidBnk"><citetitle>FLslidBnk</citetitle></link>,
82 <link linkend="FLslidBnk2"><citetitle>FLslidBnk2</citetitle></link>,
83 <link linkend="FLvslidBnk"><citetitle>FLvslidBnk</citetitle></link>,
84 <link linkend="FLvslidBnk2"><citetitle>FLvslidBnk2</citetitle></link>
85 <link linkend="FLslidBnkSet"><citetitle>FLslidBnkSet</citetitle></link>,
86 <link linkend="FLslidBnk2Set"><citetitle>FLslidBnk2Set</citetitle></link>,
87 <link linkend="slider8table"><citetitle>slider8table</citetitle></link>
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>Credits</title>
93 <para>Author: &namegabriel;</para>
94 <para>New in version 5.06</para>
95 </refsect1>
96 </refentry>