-
... ey, key.asSpec.map(val)) }); getFunc = { proxy.getKeysValues([key])[0] }; } makeButton { |parent, bounds| Button(parent, bounds) .states_([[""], ["", Color.white, Color.red]]) .action_({ |btn| if (btn.value == 1) { this.autoOn } { this.auto ...
-
... .do{|f| f.bufferSize_(board.bufferSize)}; win.refresh; }.valueAction_(2); btn1= Button(win, Rect((pw+2)*2+po, 20, pw/2, 20)).states_( [["Off"]]++DataFilterNotch.keys.collect{|x| [x.asString+"Hz"]} ).action_{|v| if(v.value>0, { notchFilters= ...
-
... css if(cssDict.size > 0, { ^str; }, { ^nil; }); } addWidget {arg name, kind = \button, func = {}, parameters = IdentityDictionary.new, spec = [0, 1].asSpec, sendNow=true; var paramsDict, id, okToAddWidget, step; if(name.notNil, { if(namesT ...
-
... you could easily hack the source code to change this if you like. The big green-button triggers the next cue and the white number-box right next to it displays and sets (when needed) the current cue. The timer displays the time elapsed (usu ...
-
... 20)) .value_(0.5) .action_({|sl| Tdef(instrument).set(\density, sl.value); }); Button(w, Rect(200, 120 + (180*num), 100, 40)) .states_([ ["play", Color.black, Color.green], ["stop", Color.black, Color.red], ]) .action_({ var tdef = Tdef(in ...
-
... me . gui make a ProxyChainGui for the ProxyChain - see examples. // by default, buttonList nil is replaced with control buttons for all slots. c.gui(20); // if specified, can be friendlier ( g = c.gui(20, [ [ \generators, \label ], // a lab ...
-
... , Rect(10, 10, 390, 3 + ( servers.size * 29))).front; w.addFlowLayout; killer = Button(w, Rect(0,0, 20, 18)); killer.states = [["K"]]; killer.canFocus = false; killer.action = { Server.killAll }; w.view.decorator.nextLine; servers.do{ |s| s ...
-
... ints, timeScale, win, subwin, font, labelColor, windowColor, presetArray, presetButtons, masterOut; /* , , , , , , , , , , freqRatioDisplayAnumber, freqRatioDisplayBnumber, , , , , ; */ /////////////////////////// // Various i ...
-
... : A Boolean. Inherited instance methods Examples ( w = Window("mov").front; b = Button(w, Rect(0, 0, 150, 20)) .states_([["pick a file"]]) .action_({ File.openDialog("", { |path| m.path_(path) }) }); m = MovieView(w, Rect(0,20,360, 260)); ) ...
-
... ared: ( midiChan: 0, elementType: \pad, ioType: \in ), elements: // independant buttons [ [\play, 26, 86, 35], [\stop, 25, 85, 34], [\rec, 24, 84, 33], ] .collect { |midiSpec, index| ( key: midiSpec[0], elements: [ ( key: \on, midiNum: midi ...