FLvalueFLTK:OtherFLvalueFLvalue
Shows the current value of a FLTK valuator.
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/pluginsFLvalue shows current the value of a valuator in a text field.
Syntaxihandle FLvalue "label", iwidth, iheight, ix, iyInitializationihandle -- handle value (an integer number) that unequivocally references the corresponding valuator. It can be used for the idisp argument of a valuator.
label -- a double-quoted string containing some user-provided text, placed near the corresponding widget.
iwidth -- width of widget.
iheight -- height of widget.
ix -- horizontal position of upper left corner of the valuator, relative to the upper left corner of corresponding window (expressed in pixels).
iy -- vertical position of upper left corner of the valuator, relative to the upper
left corner of corresponding window (expressed in pixels).
PerformanceFLvalue shows the current values of a valuator in a text field. It outputs ihandle that can then be used for the idisp argument of a valuator (see the FLTK Valuators section). In this way, the values of that valuator will be dynamically be shown in a text field.
Note that FLvalue is not a valuator and its value cannot be modified.The value for an FLvalue widget should be set only by other widgets, and NOT from FLsetVal or FLsetVal_i since this can cause Csound to crash.Examples
Here is an example of the FLvalue opcode. It uses the file FLvalue.csd.
Example of the FLvalue opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoFLbox,
FLbutBank,
FLbutton,
FLprintk,
FLprintk2CreditsAuthor: &namegabriel;New in version 4.22Example written by Iain McCurdy, edited by &namekevin;.