-
... end = f.get( \end ); curve = f.get( \curve ); path.positions = n.collect({ |i| Point( i.lincurve(0,n-1,start.x,end.x,curve.x), i.lincurve(0,n-1,start.y,end.y,curve.y), ); }); }, [ \start, 0@0, \end, 5@5, \curve, 0@0 ] ) .changesT_( false ) ...
-
... ); this.assert(p[0] == p[1], "pc1() on perfectly correlated data gives a vector pointing along [+1, +1] or [-1, -1]"); // Anticorrelated x = {10.0.sum3rand}.dup(n); y = x.collect(0.0 - _); p = pc1([x, y].flop); this.assert(p[0] == (0.0 - p[ ...
-
... ownAction; redCol = Color(1, 0.6, 0, ampAlpha); ampViews = locations.collect { |point, i| var left = point.x + 1 * center.x; var top = point.y + 1.05 * center.y; StaticText(parentView, Rect.aboutPoint(left@top, size, size)) .string_((i + 1) ...
-
... etFrom { |otherSpec| // Note that ownership with grid and warp are weird - they point back to // the owning spec, so these need to be copied and re-setup in this case. this.minval = otherSpec.minval; this.maxval = otherSpec.maxval; this.war ...
-
... }) } update { // if what is 'grid' ins = inlets.asArray.sort({ arg a, b; a.unit.point <= b.unit.point }); outs = outlets.asArray.sort({ arg a, b; a.unit.point <= b.unit.point }); } draw { var b, gr; b = uv.bounds.moveTo(0, 0); gr = Rect(lab ...
-
... y21 * x13)) / denom; if ((ub < 0) || (ub > 1), { ^false; }) }); ^(x@y) } projectPoint2Line{arg aPoint; ^(p1+(p2-p1).asRealVector.proj((aPoint-p1).asRealVector2D)); } closestPointOnLine{arg aPoint; ^(p1+(p2-p1).asRealVector.proj((aPoint-p1). ...
-
... asSymbol] }, ioType: \in ) ), elementsDesc: ( // input elements: // 10 floating-point arguments indicating the current readings of the on board sensors. Arguments 1 – 3 gyroscope (°/s) x, y, z; arguments 4 – 6 accelerometer (g), x, y ,z; ar ...
-
... .close}); } //--private prContainer { var width, height; position= position ?? {Point(600, 400)}; width= 120; height= 140; if(parent.isNil, { parent= Window(redMix.class.name, Rect(position.x, position.y, width, height), false); win= parent ...
-
ChordtrisEngine { // pointer to the Chordtris instance var chordtris; // Matrix of cells, instance of ChordtrisMatrix var matrix; // Task to update the matrix var updateTask; // the current chord which must be played var currentBrick; // th ...
-
... ium 2: 16-chan ambisonics x/y" ], [ 'bfenc2', "Ambisonic 3D B format encoder xy points - x channels" ], [ 'bfenc1', "Ambisonic 3D B format encoder azi, elev, rho - x channels" ] ]