checkboxInstrument Control:Sensing and Controlcheckboxcheckbox
Sense on-screen controls.
DescriptionPlugin opcode in control.
Sense on-screen controls. Requires Winsound or TCL/TK.
Syntaxkres checkbox knumPerformance
Note that this opcode is not available on Windows due to the implimentation of pipes on that system
kres -- value of the checkbox control. If the checkbox is set (pushed) then return 1, if not, return 0.
knum -- the number of the checkbox. If it does not exist, it is made on-screen at initialization.
Examples
Here is a simple example of the checkbox opcode. It uses the file checkbox.csd.
Simple example of the checkbox opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSensing and Control: TCL/TK widgetsCreditsAuthor: &namejohn;University of Bath, Codemist. Ltd.Bath, UKSeptember, 2000Example written by &namekevin;.New in Csound version 4.08