-
... eView { // shouldnt really do this to an h or v layout resizeToFit { var r; r = Rect(0, 0, 0, 0); this.children.do({ |kid| r = r.union(kid.bounds) }); this.bounds = r; } }
-
... onitor= false; a.close; //embedd the gui into another window ( w= Window("hgf", Rect(100, 200, 500, 500)); w.front; v= View(w, Rect(100, 100, 200, 200)).background_(Color.blue); c= TempoClock(1.4); a= RedTapTempoGUI(c, parent:v); ) c.tempo= ...
-
... ke {|parent, bounds, name| var cmp, width1, height1; if(bounds.isNil, { bounds= Rect(0, 0, defaultWidth, defaultHeight); }, { bounds= bounds.asRect; }); cmp= CompositeView(parent, bounds); cmp.decorator= FlowLayout(bounds, 4@0, 4@0); width1 ...
-
... ce.didLoad() }, gui: { arg layout; var l; l = layout ?? {PageLayout("Recorder", Rect(100, 100, 800, 600))}; ~source.gui(l); if(layout.isNil, { l.resizeToFit }) } ));
-
... e pads geometrically w = Window("axis49 - selfless layout, 98 keys in columns", Rect(0,0,600,320) ).front; b = (1..98).clump(7).collect { |col, i| var width = 40, angle = 0.0; col.collect { |num, j| var left = i * width * 0.8; var rightHalf ...
-
... l.if({ if(parent.respondsTo(\view)){ parent.view.bounds }{ parent.bounds } }, { Rect(200 ,140, 705, 410); }); }; width = bounds.width-8; name = name ? "plot"; unlaced = this.unlace(numChannels); minval = if(minval.isArray, { minval.collect( ...
-
... ins); (1/61).wait; //a tiny bit faster than framerate }; }); win= Window("fft", Rect(10, 100, width, height), false); usr= UserView(win, Rect(0, 0, width, height)); usr.background= Color.black; usr.drawFunc= { Pen.fillColor= Color.white; nu ...
-
... ist with 1000 centroid indices. one for each vector ( w= Window("k-means plot", Rect(100, 100, 640, 480), false); w.view.background= Color.black; w.drawFunc= { var colors= {|i| Color.hsv(i/a.k, 1, 1)}.dup(a.k); b.do{|vec, i| Pen.fillColor= ...
-
... er.port; var maxNumVoices= 100; //maximum number of voices for the synth var winRect= Rect(242, 242, 900, 780); //x, y, w, h var palette= SGUI.palette((highlight: Color.yellow(2/3, 0.75))); var fnt= SGUI.font.copy.size_(10); var fps= 25; va ...
-
... ew.bounds; // a zone for the extra buttons etc var butzone = CompositeView(win, Rect(160, 0, 750, 25)).background_(Color.rand); // a userview to draw the numeric values on var uv = UserView(win, vbounds.top_(vbounds.height).height_(30)) .ba ...