-
... find the median index, but if even-sized data we want to // make sure we find a point, so we don't use the average-of-two-centre-points that .median uses medianPos = array.size >> 1; sorted = array.copy; sorted.hoareFind(medianPos, { |a,b| ...
-
... ^super.new.initXiiWindowLocation(name); } initXiiWindowLocation {arg name; var point; // ARCHIVE CODE - REMEMBER THE WINDOW LOCATION // read position from archive.sctxar // create dictionary if it doesnt exist if ( (Archive.global.at(\win_ ...
-
... et.neg*0.5; penWidth = 1.max(size*0.05); Pen.width=penWidth; square = Rect.aboutPoint(center,size*0.5,size*0.5); Pen.translate(offset2,offset2); Pen.addRect(square.copy.moveBy(offset,offset) ); Pen.stroke; Pen.moveTo(Point(square.right+offs ...
-
/* \envir_point_set ** this Udef can be used in conjunction with 'envir_point_get' and 'p_envir_point_get' UMaps ** The 'envir_point_set' Udef creates a unit that is able to globally share a value with other units used further in the chain, ...
-
/* \encode_point Encodes a point to an ambisonic soundfield signal. point: the point elevation: elevation amount (-0.5pi - 0.5pi), 0.5pi is straight above, 0 is at horizon dopplerAmt: amount of doppler effect dbRollOff: amount of dB per dis ...
-
//spinning point ( var width= 640, height= 480, w, theta= 0, speed= 0.01, point; w= RedWindow("3Dpoint", Rect(128, 64, width, height)).front; point= Red3DPoint(RedVector3D[0, 0, 0.5]); //--loop w.draw{ theta= theta+speed; point.rotation= Re ...
-
... r', [ 'freq', [ 20, 800 ] ] ], [ 'tremolo', [ 'speed', 5 ] ], [ 'wfsSource', [ 'point', 'lag_point' ] ] ).fadeIn_(1).fadeOut_(1) ).gui; ) UScore.current.enableOSC; // or check the 'OSC' button in the gui // manual controls (more than the to ...
-
... lpha_(0.5); borderColor = Color.gray(0.2).alpha_(0.5); } draw { var drawBounds, pointWidth, pointStart, viewHeight, points; Pen.use { drawBounds = this.bounds; if( orientation == \v ) { drawBounds = Rect( drawBounds.top, drawBounds.left, dr ...
-
XixiPrey { var <>point, <>pitch, rect, stageRect; var fillcolor, strokecolor; var rot, predatorArray, preyArray; var xDistance, yDistance, destpoint, move, friction; var posNegX, posNegY; var xAway, yAway; var ateFunc; // what happens when ...
-
... in.background= Color.white; win.drawFunc= { Pen.color= Color.black; Pen.stringAtPoint("Focus Widget", Point(10, 10), f0); }; win.front; CmdPeriod.doOnce({win.close}); //--plot usr= UserView(win, Rect(*#[0.05, 0.19, 0.9, 0.76]*win.bounds.ext ...