-
... e // return value }); a.add( 'click' ,{ arg x,y; [x,y].postln; "" .postln; p.setcolor(x,y,1); p.response( Color (x,y,1).asString ); "You clicked" + x + y // return value }); ) You need the http://www.sojamo.de/oscP5 library. Open Help/ osct ...
-
... //errors.label = "% % (%:%)".format(msg[1], msg[2], mins, secs); //errors.stringColor = Color.white; "% % (%:%)" .format(msg[1], msg[2], mins, secs).postln; }.defer }); f.add; // cause a failure Synth ( "gthhhhppppppp!" ); f.remove
-
... var c = ({ "abcd".choose } ! 3).join; Button(w, Rect(0,0, 30,25)) .states_([[c, Color.black]]) .action_({ f.(c) }) .font_(Font(\Georgia, 11)) } ! 4; w.view.decorator.nextLine } ! 4; w.view.decorator.nextLine; Button(w, Rect(0,0, 30,25)) .st ...
-
... ; paramDict = Dictionary.new; playButton = Button(w, 50@20) .states_([ ["Play", Color.green, Color.black], ["Stop", Color.red, Color.black] ]) .action_({arg me; this.playFunc(server, me.value, false, nil, playButton, durBox, paramDict, nCha ...
-
... r *prBasicNew prAdd prGetLastIndex setFont (font, rangeStart, rangeSize) setTextColor (color, rangeStart, rangeSize) propen (path, selectionStart, selectionLength) rangeText (rangestart, rangesize) insertTextRange (string, rangestart, range ...
-
... GUI.button.new(w, Rect(yStep*2, index*yStep, yStep, yStep)) .states_([["start", Color.black], ["stop", Color.red]]) .action_( { arg button ; if ( button.value == 1, { runner.startAll }, { runner.stopAll })} ) ; //.valueAction_(if (runner[0] ...
-
... true; dbJack.value = -300; dbJack.changed; } draw { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(mute, { ^pen.stringCenteredIn("muted", bounds); }); pen.stringCenteredIn(db.round(0.1).asString ++ "dB" ...
-
... mpositeView(x,400@400) }; window.view.hasHorizontalScroller_(false).background_(Color.grey(0.9)); onClose = [servers, comp].flopWith{ |s,c| s.plotTreeView(0.5, c, { defer {window.close}; }) }; window.onClose = { onClose.do( _.value ); }; }; ...
-
... velope view. Some Important Issues Regarding SCEnvelopeEdit The breakpoints are color coded as follows: blue normal red sustain node green loop node Class Methods . new Arguments: parent The parent view. bounds An instance of Rect , or a Po ...
-
... nItemChanged_PopupSelectControl("slider"); } initializeView { this.background = Color.black.alpha = 0.2; this.toolTip = "Configure control behavior."; mainLayout = GridLayout(); mainLayout.margins = 4!4; this.layout = mainLayout; this.setCo ...