-
... ); }; super.drawBorder; }) // ACTIONS // .mouseDownAction_({ |view, x, y, mod, button, clickCount| if(hoveredElement.isNil) { pressedCase = hoveredCase; } { if((caseHandle.x.abs + caseHandle.y.abs) == 2) { thisDrawGrid = false; thisDrawDot ...
-
... .3| var m = MouseY.kr(0, 8); var trig = (num <= m) & (m < (num + 1)) * MouseButton.kr(0, 1, 0); Out.ar(out, PinkNoise.ar * EnvGen.kr(Env.perc(0.01, 0.02), trig) * amp); }).add; SynthDef(\sitar, { |out = 0, chikari = 0, tarafdar ...
-
... // open stage control can do this: str = oscpath.asString; // a bit of a dodge: buttons have labels, faders don't // but a globalcontrol =>.x t will assign to a fader; // we need to send the label message anyway if(~sendAddr.notNil) { num = ...
-
... itClass new play midiDevices Inherited class methods Instance methods isRunning button window server envbus releasetime about play value gui recordpath stopprocess function release data responder timeScale clock mapAmpToCC releaseFunc info ...
-
... wRects_(true) .value_(this.asEnvViewInput(true) ) .setEditable(-1,false); c = SCButton(a, Rect(0,0,60,20)).states_( [["refresh"]] ) .action_({ b.value_(this.asEnvViewInput(true) )}); d = SCButton(a, Rect(0,0,60,20)).states_( [["edit"]] ) .a ...
-
... ew.value; }) .canFocus_(false) .font_(font) .value_(params[2]); onOffButt = GUI.button.new(win, Rect(pad[0] + rect.width + 8, rect.height-2, pad[1], 16)) .states_([["On", Color.black, Color.clear], ["Off", Color.black, Color.green(alpha:0.2 ...
-
... 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 ...
-
... // control window var window, dampknob, damptext, springknob, springtext, resetbutton, panknob, pantext, newbounds; window = Window.new(server:s); damptext = StaticText.new(); damptext.string = "damping\n"; dampknob = Knob.new(window); ...
-
... index index - some key to identify the running voice. e.g. a MIDInote key, or a button number. args - the arguments to be set individually for this voice. (usually, these are the ones in setParams.) g.play; g.put(48, [ \freq , 48.midicps, \ ...
-
... ======== // ----------------------------------------------- startStopButt = GUI.button.new(win,Rect(10, 30, 102, 18)) .states_([["start",Color.black,Color.clear],["stop",Color.black,Color.green(alpha:0.2)]]) .font_(GUI.font.new("Helvetica", ...