-
... oor, Boston, MA 02110-1301, USA. */ +Collection { miSC_enumerateIndices { (this.size == 1).if { ^(0..(this[0]-1)); }{ ^[(0..(this[0]-1)), this.copyToEnd(1).miSC_enumerateIndices] .allTuples.collect(_.flatten) } } miSC_isGrouping {|n| var f; ...
-
... = [ SinOsc.ar, Saw.ar(300), Pulse.ar(230) ]; LinSelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2 }.play; ) ( { var a; a = [ SinOsc.kr(0.25), LFSaw.kr(10), LFPulse.kr(0.3) ]; SinOsc.ar(LinSelectX.kr(MouseX.kr(0, 1) * a.size, a) * 300 + 400) * ...
-
... 5, bounds.width, bounds.height); if(w.isNil, { w = Window(mx.asString, bounds.resizeBy(40, 40).moveTo(10, 250) ); w.front }); Updater(mx, { arg mx, message; if(message == 'grid', { this.calcNumRows; this.updatePoints; }); if(message == 'mix ...
-
... ayout. Arguments: wsWindow An instance of WsWindow bounds A Rect specifying the size of the widget. NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) would occupy whole ...
-
... mallerThan { arg val; var i = this.indexOfGreaterThan(val); if(i.isNil) { ^this.size - 1 }; if(i == 0) { ^nil } ^i - 1 } }
-
... ultiNew { |...args| args = args ? [0,0,0,0]; args = args.flop; ^Array.fill(args.size, { |i| Rect(*args[i]) } ); } }
-
... ) } listArgs { this.streamArgs(Post); } streamArgs { |collstream| (def.argNames.size > 0).if({ def.argNames.do({ |name, i| (i > 0).if({ collstream << ", " }); collstream << name; }); }); } } // kind of bizarre: \aSymbol.free frees the synth ...
-
... s).if({ ^font }, { ^(font = GUI.font.new(*fontSpecs)) }); } guiBody { |lay| var size, cols, myRows, width, height, temp; layout = lay; // compute bounds minNoteFloor = model.minNote.trunc(rows); ((maxNoteCeil = model.maxNote.trunc(rows)) != ...
-
... s).if({ ^font }, { ^(font = GUI.font.new(*fontSpecs)) }); } guiBody { |lay| var size, cols, myRows, width, height, temp; layout = lay; // compute bounds minNoteFloor = model.minNote.trunc(rows); ((maxNoteCeil = model.maxNote.trunc(rows)) != ...
-
... tNames = paramUnits[paramName]; var initVals = tree.values; mywidth = unitNames.size * unitWidth; comp = CompositeView(w, Rect(0,0, mywidth, unitHeight + 4)) .background_(Color.gray(0.9)); comp .decorator_(FlowLayout(comp.bounds, 0@0, 0@0)) ...