-
... < 0 }, 3, { y < 0 }), { Pen.width = 2.5 }, { Pen.width = 1 }); Pen.arrow( 0@0, Polar( arrowRadius, (i / 2) * pi ).asPoint, 3 ); Pen.stroke; }); }); } mouseDown { arg x, y, modifiers, buttonNumber, clickCount; mouseDownAction.value(this, x, ...
-
... Label = if (drawInts, { i.asString}, {notes@j }); Pen.stringAtPoint( noteLabel, Polar.new(radius * 0.75, 1.5pi + ((2pi/steps) * j)).asPoint ); }); Pen.translate(centre*0.05, centre * 0.07); // adjust back to centred // Draw the lines steps. ...
-
... e) }, { phase }); ^super.newCopyArgs(mag, pha) } *newComplex { arg complex; var polar = complex.asPolar; ^FreqSpectrum.new(polar.magnitude, polar.phase) } *logShelf { arg size, freq0, freq1, gainDC, gainNy, sampleRate; var f0, f1; var delta ...
-
... .do({ |item| //Pen.scale(scale,scale.neg); Pen.addRect( Rect.aboutPoint( item + Polar(0.3, arrayConf.angle).asPoint, 0.3, 0.3) ); Pen.fill; }); }); }; Pen.color = Color.black; letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; conf.arrayConfs.do({ |ar ...
-
... >units, <>mode; // constrains inside rect var clipRect; // mode can be \point, \polar, \deg_cw, \deg_ccw // only for gui; output will always be Point *new { |rect, step, default, units, mode| ^super.newCopyArgs( rect ? inf, (step ? 0).asPoi ...
-
... exprand: 1000, ] ], [ \tremolo, [ \speed, (i*3/n) ] ], [ \wfsSource, [ \point, Polar(r, i.linlin(0,n,0,2pi) ).asPoint ] ] ).duration_( 10 ).fadeOut_( 1 ); }) ); a.gui; ) ( // moving circle (check the WFSPositionTracker) n = 12; // number o ...
-
... thisValue = 0; var thisMin = 0; var thisMax = 1; var thisScale = \lin; var thisPolarity = \uni; var thisOrientation = \vertical; var thisModStep = 0.01; var thisModStepOperator = \add; var thisModStep2 = 2; var thisModStep2Operator = \mul; ...
-
... .5 ); var rect, fillRect, fillRect2, fillColor; var hexPoints = 7.collect { |i| Polar(center.y, 2pi * (i/6) + angle).asPoint + center }; Pen.fillColor = hexColor; Pen.moveTo(hexPoints.last); hexPoints.do(Pen.lineTo(_)); Pen.fill; if( presse ...
-
... var thisValues; var thisMin = 0; var thisMax = 1; var thisScale = \lin; var thisPolarity = \uni; var thisOrientation = \horizontal; var thisModStep = 0.01; var thisModStepOperator = \add; var thisModStep2 = 2; var thisModStep2Operator = \mu ...
-
... .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; // e ...