-
... machine, the player should guess out loud either "right" or "left." The center button of the machine is then pressed and the machine will light up either the right or left light. If the machine matches the player, the machine wins, otherwi ...
-
... ppen automatically when no desc is found. // to test matching: // remove middle button in desc -> now elements remain onlyInDesc d.elementsDict.removeAt(\bt_middle); d.matchWithHID(m.device.source); // remove hid elem 5 in HID -> now elemen ...
-
... yFrame_(true) .fontRatio_(0.75) .style_(style); /////////////////////// // PLAY BUTTON // /////////////////////// var playButton = GMPlayButton() .style_(style) .action_({ |playing| if(playing) { routine = Routine({ var currentBeat = 0; loo ...
-
... the last one to be used as the final answer. example: a monkey is hitting many buttons, changing his mind about which sound to play next. this would result in many bundles being stacked up all at the same time, and the server would choke t ...
-
... Methods Interaction . action Sets or gets the Function to be triggered when the button is pressed down. This Function takes an Integer argument: the index of the pressed key. If sustainMode is set to true , the action will take a second arg ...
-
... on, and test how the text view responds t.mouseUpAction_{ |it, x, y, modifiers, buttonNumber| [x, y].postln }; t.autohidesScrollers_(false); t.hasVerticalScroller_(false); t.hasVerticalScroller_(true); t.hasHorizontalScroller_(false); t.has ...
-
... e dependent on instance variables which you defined, such as value, states (for buttons), x and y (for mouse clicks), or anything else you might need for your design. See Pen for drawing methods. 5. Define typical widget methods Here you de ...
-
... ch; var joy; // the same environment is again in place ~freq.gui(layout); ActionButton(layout,"twitch",{ var x,y; // action button now remembers the environment ! ~freq.setUnmappedValue( x = 1.0.rand ); ~syncFreq.setUnmappedValue( y = 1.0.r ...
-
... orientation = \vertical; sl }; sliders.do { |sl, i| var ll = VLayout(); ll.add( Button().states_([["x"], ["y"], [" "]]).action_({ |b| if(b.value == 0) { ysl.remove(i);xsl.add(i); sl.value = twod.x; }; if(b.value == 1) { xsl.remove(i); ysl.a ...
-
... rol over all the SynthDef's inputs, with sensible range mappings. (The "window" button in the SynthDescLib browser does exactly this -- any ControlSpecs listed in the metadata will be used for the corresponding synth input's slider.) Curren ...