-
... e, { |out=0, gain=0.5, length=1, freq=200, depth=20| var bounce, freqenv, ampenv; freqenv = EnvGen.kr(Env.perc(0.01,length,depth)); ampenv = EnvGen.kr(Env.perc(0.01,length,1.0),doneAction:2); bounce = SinOsc.ar(freq+freqenv)!2 * a ...
-
//some pendulums drifting and coming to a halt ( var width= 640, height= 480, w, wgrav, world, ypos; //--world w= RedWindow("pendulum test5", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; wgrav= RedVector2D[0, 0]; world= Red ...
-
//some pendulums drifting and coming to a halt ( var width= 640, height= 480, w, wgrav, world, ypos; //--world w= RedWindow("pendulum test5", Rect(128, 64, width, height)).front; w.clearOnRefresh= false; wgrav= RedVector2D[0, 0]; world= Red ...
-
... bounds.width )) @ (array[1].linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color = Color.gray(0.2).alpha_(0.5); Pen.strokeRect( bounds.insetBy(-1,-1) ); Pen.addRect( bounds ).clip; Pen.color = Color.gray(0.2).alpha_(0.125); hlines. ...
-
... r.blue = color.blue + m; color; }; h_slider.drawFunc_( { | view | Pen.width = 1; view.bounds.height.do( { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, view.bounds. ...
-
... ace(w, bounds); } initParaSpace { arg w, argbounds; var a, b, rect, relX, relY, pen; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left + 0.5, bounds.top + 0.5, bounds.width, bounds.height); if((win= w).isNil, { win = GU ...
-
... super.drawBackground(super.backgroundColor); // Draw beat if(thisBeat != -1) { Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.widt ...
-
//objects shoot out off each other. with friction and world damping to compensate. ( var width= 300, height= 300, w, wgrav, world, n= 18; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0. ...
-
//objects shoot out off each other. with friction and world damping to compensate. ( var width= 300, height= 300, w, wgrav, world, n= 18; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0. ...
-
... - ( 2 + 40 + (4 + 40 + 4 + 40) ), 1, 42, 12 ) ) .label_( "udefs" ) .toolTip_( "open Udefs window.\n\nYou can drag Udefs to the chain from there or open" + "their corresponding code files." ) .radius_( 2 ) .action_({ UdefsGUI(); }).resize_(3 ...