-
... home hi-fi style. s = Server.local.boot; b = Buffer.alloc(s,2048,1); ( var win, size=8; c = Bus.control(s, size); // Values will be written to control busses win = SCWindow("EQ meter", Rect(100, 200, 360, 110)); ~slider = SCMultiSliderView( ...
-
... ope the file format holds... var sampleSetPrefixLength = VGTuning.sampSetPrefix.size; text = TabFileReader.read(path); if(text.isNil) { postln("couldn't open file:" + path.cs) }; text = text.delimit(_ == [""]); sonatorSpecs = (); specList = ...
-
+ Collection { firstIfSizeIsOne { if( this.size == 1 ) { ^this[0] } { ^this } } repeatLast { |n = 1| ^this ++ this.class.fill( n, { this.last } ); } downSize { |n=1| ^this[..( this.size-(1+n) )] } // relative downsize }
-
... Ktls: // load MKtlDevice.verbose = false; MKtlDesc.loadDescs; MKtlDesc.allDescs.size; // make MKtls, keep fails if any ( ~failed = List[]; MKtlDesc.allDescs.sortedKeysValuesDo { |key, desc| // desc.name.postln; try { MKtl(desc.name, desc.na ...
-
... out, Rect(0,0,buttonWidth, (GUI.skin.buttonHeight + GUI.skin.gap.y) * nameFuncs.size)); this.guiBody(false); this.enableKeyDowns; if(isMyLayout,{ layout.resizeToFit }); if(parent.isNil,{ layout.front }); } guiBody { arg resize; nameFuncs.do ...
-
... t, Rect(0, 0, buttonWidth, (GUI.skin.buttonHeight + GUI.skin.gap.y) * nameFuncs.size)); this.guiBody(false); this.enableKeyDowns; if(isMyLayout, { layout.resizeToFit }); if(parent.isNil, { layout.front }); } guiBody { arg resize; nameFuncs. ...
-
... and: { w.isClosed.not }) { try { w.front }; ^this }; this.makeWin; } *checkFontSize { // estimate layout height, and reduce font size if needed var maxbutheight = (Window.screenBounds.height - 24 / (curr.actions.size)); var maxfontsize = ( ...
-
... RedPendulum(world, loc, nil, 0, 4.0.rand, 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0); }.dup(n); //--loop w.draw{ Pen.width= 1; 100.do{|i| Pen.strokeColor= Color.grey(i/100, 0.5); world.objects.do{|o| o.addFo ...
-
... RedPendulum(world, loc, nil, 0, 4.0.rand, 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0); }.dup(n); //--loop w.draw{ Pen.width= 1; 100.do{|i| Pen.strokeColor= Color.grey(i/100, 0.5); world.objects.do{|o| o.addFo ...
-
... oString; documented = "*Show All Documented Classes" ; documentedIndex = result.size; result = result ++ documented ++ Char .nl ++ Char .nl; documentedClasses = List .new; // compile list of documented classes and compare with master class ...