// how to use a checkbox // lp ( var w, amp = 0.0, box; w = GUIWindow.new("panel", Rect.newBy( 128, 64, 281, 90 )) .backColor_(rgb(220,174,59)); box = CheckBoxView.new( w, Rect.newBy( 22, 17, 229, 41 ), "the universe is a 3-d torus!!!!", 0, 0, 1, 0, 'linear') .backColor_(rgb(81,167,176)).labelColor_(rgb(176,38,80)); { SinOsc.ar(220, 0, ControlIn.kr(box) * 0.2); }.play; w.close; )