button Instrument Control:Sensing and Control button button Sense on-screen controls. Description Sense on-screen controls. Requires Winsound or TCL/TK. Syntax kres button knum Performance Note that this opcode is not available on Windows due to the implimentation of pipes on that system kres -- value of the button control. If the button has been pushed since the last k-period, then return 1, otherwise return 0. knum -- the number of the button. 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 also Sensing and Control: TCL/TK widgets Credits Author: &namejohn; University of Bath, Codemist. Ltd. Bath, UK September 2000 New in Csound version 4.08