-
... ; allViews = (); updateActions = () .put(TextView.implClass, { |val, view| view.string = val.asCompileString }) .put(PopUpMenu.implClass, { |val, view| view.value = view.items.indexOfEqual(this.stringForPopUp(val)) ? 0 }) .put(EZSlider, { | ...
-
q.warnWin = { |q, string="?!?", title="?!?"| var w = Window("Warning: %".format(title)).front.alwaysOnTop_(true); var tv = StaticText(w, w.view.bounds); tv.background_(Color(1, 0.75)); tv.align_(\center); w.alpha_(0.9); tv.string_(string).f ...
-
NTMI.q.warnWin = { |q, string="?!?", title="?!?"| var w = Window("Warning: %".format(title)).front.alwaysOnTop_(true); var tv = StaticText(w, w.view.bounds); tv.background_(Color(1, 0.75)); tv.align_(\center); w.alpha_(0.9); tv.string_(stri ...
-
... ews { |inPath| var dirname, basename; if( inPath.notNil ) { basename = inPath.asString.basename; dirname = inPath.asString.dirname; }; { views[ \basename ].string = basename ? ""; views[ \dirname ].string = dirname ? ""; }.defer; } value_ { ...
-
... mpanying Motif class? No, complicates easy creation of arrays //can add convert string to array format function to this class as class method! MotifCutProc : BBCutProc { var motiflist,indexfunc,phraselength; var motifpos,motifindex,currmoti ...
-
... ttom ); }); Pen.stroke; (barLines ? [])[0,round..].do({ |item, i| Pen.use({ var string, bnds; string = (firstBar + (i * round)).asString; bnds = string.bounds( Font( Font.defaultSansFace, 9 ) ); bnds.width = bnds.width + 4; Pen.translate( i ...
-
... ttom ); }); Pen.stroke; (barLines ? [])[0,round..].do({ |item, i| Pen.use({ var string, bnds; string = (firstBar + (i * round)).asString; bnds = string.bounds( Font( Font.defaultSansFace, 9 ) ); bnds.width = bnds.width + 4; Pen.translate( i ...
-
... UnitTestScript("Log", thisProcess.nowExecutingPath).runScript; { |test| var logString = "This is a test."; Log(\unittestlog).level = \debug; Log(\unittestlog).debug(logString); test.assertEquals(Log(\unittestlog).lines.last.string, logStri ...
-
... lastval)); slider.action_({arg sl; var val; val = spec.map(sl.value); valueText.string_(val); lastval=val; }); nameText = GUI.staticText.new(w, namerect) .font_(font) .string_(name); valueText = GUI.staticText.new(w, numberrect) .string_(la ...
-
+ SimpleNumber{ // receiver is a time in seconds // returns string "hh:mm:ss:ff" where f is frames // uses one global SMPTE object to prevent memory buildup when called lots of times asSMPTEString { |fps = 25| ^SMPTE.global.initSeconds( thi ...