FLslidBnk2Setk FLTK:Other FLslidBnk2Setk FLslidBnk2Setk modify the values of a slider bank. Description 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. The plugin repository can be found here: https://github.com/csound/plugins FLslidBnk2Setk modifies the values of a slider bank according to an array of values stored in a table. Syntax FLslidBnk2Setk ktrig, ihandle, ifn [, istartIndex, istartSlid, inumSlid] Initialization ihandle - handle of the sliderBnk (to be used to set its values). ifn - number of a table containing an array of values to set each slider to. istartIndex - (optional) starting index of the table element of to be evaluated firstly. Default value is zero istartSlid - (optional) starting slider to be evaluated. Default 0, denoting the first slider. inumSlid - (optional) number of sliders to be updated. Default 0, denoting all sliders. Performance ktrig – the output of FLslidBnk2Setk consists of a trigger that informs if sliders have to be updated or not. A non-zero value forces the slider to be updated. FLslidBnk2Setk is similar to FLslidBnkSet but allows k-rate to modify the values of FLslidBnk2 (FLslidBnk2Setk can also be used with FLvslidBnk2, obtaining identical result). It also allows the slider bank to be joined with MIDI. If you are using MIDI (for instance, when using the slider8table opcode), FLslidBnk2Setk changes the values of FLslidBnk2 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 FLslidBnk2 widget when used together with the sliderXXtable set of opcodes (see slider8table 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 iconfigtable configuration of FLslidBnk2, when you intend to use the FLslidBnk2Setk opcode. In fact, corresponding inputTable element of FLslidBnk2Setk must be set in linear mode and respect the 0 to 1 range. Even the corresponding elements of sliderXXtable must be set in linear mode and in the normalized range. You can do table indexing later, by using the tab and tb 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 iconfigtable of corresponding FLslidBnk2 and in sliderXXtable. FLslidBnk2Setk the k-rate version of FLslidBnk2Set. Examples Here is an example of the FLslidBnk2Setk opcode. It uses the file FLslidBnk2Setk.csd. Example of the FLslidBnk2Setk opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See Also FLslider, FLslidBnkGetHandle, FLslidBnk, FLslidBnk2, FLvslidBnk, FLvslidBnk2 FLslidBnkSet, FLslidBnk2Set, slider8table Credits Author: &namegabriel; New in version 5.06