FLjoy FLTK:Valuators FLjoy FLjoy A FLTK opcode that acts like a joystick. 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 FLjoy is a squared area that allows the user to modify two output values at the same time. It acts like a joystick. Syntax koutx, kouty, ihandlex, ihandley FLjoy "label", iminx, imaxx, iminy, \ imaxy, iexpx, iexpy, idispx, idispy, iwidth, iheight, ix, iy Initialization ihandlex -- a handle value (an integer number) that unequivocally references a corresponding widget. Used by further opcodes that changes some valuator's properties. It is automatically set by the corresponding valuator. ihandley -- a handle value (an integer number) that unequivocally references a corresponding widget. Used by further opcodes that changes some valuator's properties. It is automatically set by the corresponding valuator. label -- a double-quoted string containing some user-provided text, placed near the corresponding widget. iminx -- minimum x value of output range imaxx -- maximum x value of output range iminy -- minimum y value of output range imaxy -- maximum y value of output range iwidth -- width of widget. idispx -- a handle value that was output from a previous instance of the FLvalue opcode to display the current value of the current valuator in the FLvalue 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. idispy -- a handle value that was output from a previous instance of the FLvalue opcode to display the current value of the current valuator in the FLvalue 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. iexpx -- an integer number denoting the behaviour of valuator: 0 = valuator output is linear -1 = valuator output is exponential All other positive numbers for iexpx 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. iexpy -- an integer number denoting the behaviour of valuator: 0 = valuator output is linear -1 = valuator output is exponential All other positive numbers for iexpy 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. IMPORTANT! Notice that the tables used by valuators must be created with the ftgen opcode and placed in the orchestra before the corresponding valuator. They can not placed 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. 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). Performance koutx -- x output value kouty -- y output value Examples Here is an example of the FLjoy opcode. It uses the file FLjoy.csd. Example of the FLjoy opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See Also FLcount, FLknob, FLroller, FLslider, FLtext Credits Author: &namegabriel; New in version 4.22 Example written by Iain McCurdy, edited by &namekevin;.