| 1 |
|
| 2 |
<refentry id="FLslidBnkSetk"> |
| 3 |
<indexterm id="IndexFLslidBnkSetk"><primary>FLslidBnkSetk</primary></indexterm> |
| 4 |
<refentryinfo><title>FLTK:Other</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>FLslidBnkSetk</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>FLslidBnkSetk</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>FLslidBnkSetk</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>FLslidBnkSetk</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>FLslidBnkSetk</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>FLslidBnkSetk</emphasis> is similar to <link linkend="FLslidBnkSet"><citetitle>FLslidBnkSet</citetitle></link> but allows k-rate to modify the values of <link linkend="FLslidBnk"><citetitle>FLslidBnk</citetitle></link> (<emphasis>FLslidBnkSetk</emphasis> can also be used with <link linkend="FLvslidBnk"><citetitle>FLvslidBnk</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>FLslidBnkSetk</emphasis> changes the values of <link linkend="FLslidBnk"><citetitle>FLslidBnk</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="FLslidBnk"><citetitle>FLslidBnk</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>FLslidBnkSetk</emphasis> opcode. In fact, corresponding <emphasis>inputTable</emphasis> element of <emphasis>FLslidBnkSetk</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>FLslidBnkSetk</emphasis> the k-rate version of <link linkend="FLslidBnk2Set"><citetitle>FLslidBnk2Set</citetitle></link>. |
| 60 |
</para> |
| 61 |
|
| 62 |
</refsect1> |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 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> |