-
... 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 ...
-
... note: 0 ! numPads, velocity: 0 ! numPads); if (usesTops) { topNames = (pad: \topButton, velocity: \topVelocity, noteOn: \topNoteOn, noteOff: \topNoteOff); indiv.putAll((topButton: (), topVelocity: (), topNoteOn: (), topNoteOff: ())); values ...
-
... 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 ...
-
... dating.) options a list of additional information, such as flags about optional buttons. (This is used in some subclasses.) Inherited class methods Instance Methods Accessing Instance Variables g.dump; ⧉ ✔ . object . object = obj the object ...
-
... { tablet.mouseDownAction = { arg view, x, y, pressure, tiltx, tilty, deviceID, buttonNumber; synth.set(\vol, pressure); 17.do({arg j; // y axis 15.do({ arg i; var r; // x axis r = Rect(3+(i*screenX/15), 2+(j*tabletScreenY/17), (screenX/15) ...
-
... oldSlider, ampThreshold, gainReductionSlider; var compressorElements; var bypassButton; var activeOrbit; var defaultParentEvent; var minThreshold; var uiKnobFactories; var comporessorView; var globalEffects; var width, height; *new { |initH ...
-
... ({ |cb| this.showConnections_(cb.value); }) .value_(showConnections) ; triBut = Button() .action_({ var warning, triplets; fork({ statusTxt.string_("Triangulating points..."); 0.1.wait; if (\SphericalDesign.asClass.isNil) { warning = "Spher ...
-
... ve steps : // assumes low-number integer steps,intended for encoders or up/down buttons MFdef(\mainVolStep).value(4.rand2); MFdef(\mainVolStep).at(\step).cs; /////////// MainFX: ////////////// // MainFX has a list of prepared presets, // wh ...