-
... nil, { if(newPoles.isKindOf(Array), { newPoles.do({ arg pole; if(pole.isKindOf(Polar), { angle = pole.angle.wrap(-pi, pi); poles = poles.add(Polar.new(pole.magnitude, angle)); //Post a warning if the new pole magnitude is > 1.0 if(pole.mag ...
-
... = n.collect({ |i| var value; i = i.linlin(0,n,0,2pi); value = getPoint.( i ); [ Polar( value.abs * radius, i ).asPoint, value.isPositive.binaryValue ] }).flop; Pen.use({ // grid Pen.width = 1; Pen.translate( *vw.bounds.moveTo(0,0).center.as ...
-
... r[0] ++ "." ++ separr[1].split($')[1]; ^res; } } OSSIA_position : OSSIA_Unit { *polar { ^this.newCopyArgs(this.fmt(thisMethod), "[\"position.polar.r\", \"position.polar.t\"") } *cart2D { ^this.newCopyArgs(this.fmt(thisMethod), "[\"position. ...
-
... variables as described below and in the SVGObject helpfile ( SVGPolygon ( { |i| Polar ( 200.rand, i*0.2pi ).asPoint + Point ( 200, 200 ) } ! 10, "my polyline" , "firebrick" , "ivory" , 2 ).plot; )
-
... .pen.moveTo(bounds.center.x @ (bounds.top + bounds.height - 1)); GUI.pen.lineTo(Polar.new(bounds.height * 0.95, [-0.75pi, -0.25pi, \linear].asSpec.map(value)).asPoint + (bounds.center.x @ (bounds.top + bounds.height))); GUI.pen.stroke; }); ...
-
... ttempt at doing FFT pitch tracking. It actually works OK! */ getpch { var frame1Polar, frame2Polar, nBins, fft, polar, rho1, theta1, rho2, theta2, anaBin, centerFreq, phaseDif, freq; nBins = highBin - lowBin; frame1Polar = Array.newClear(nB ...
-
... 0, Pwhite( angleStep.neg, angleStep ) ).asStream; path.positions = n.collect({ (Polar( wr.next, wa.next ).asPoint * radius) + center }); path; }, [ \center, 0@0, \radius, 10@10, \angleStep, 20, \step, 0.125, \seed, 12345 ] ) .changesT_( fal ...
-
... r radius = 35 * i.sign; var angle = (i + 4 / 8 * -2pi ); var butcent = center + Polar(radius, angle).asPoint; Button(zone, Rect.aboutPoint(butcent, 10, 10)) .states_([[i.asString, skin.fontColor, skin.offColor ], [i.asString, skin.fontColor ...
-
... r radius = 35 * i.sign; var angle = (i + 4 / 8 * -2pi ); var butcent = center + Polar(radius, angle).asPoint; Button(zone, Rect.aboutPoint(butcent, 10, 10)) .states_([[i.asString, skin.fontColor, skin.offColor ], [i.asString, skin.fontColor ...
-
... adius = panDist; // should be < 1 distances = ((..4) * -2pi/5).collect({ |item| Polar(radius,item + 0.5pi).asPoint.dist( point ) }) ++ [ (0@0).dist( point ) ]; globalDist = (0@0).dist( point ); delays = ((distances + radius - globalDist) / ...