-
... that order. All of the following are legal calls to that method. SinOsc.ar(800, pi, 0.2, 0); // all normal arguments: freq, phase, mul, add // freq = 800, mul = 0.2, others get default values. SinOsc.ar(800, mul: 0.2); // freq = 800, phase ...
-
... 0, a1, a2, b1, b2; var l, al, bl2, rcp; // Thomas Musils formula: l = 1.0 / tan(pi * freq / sr); al = rq * l; bl2 = freqScale * l * l + 1.0; rcp = 1.0 / (al + bl2); a0 = rcp; a1 = rcp * 2.0; a2 = a0; b1 = rcp * 2.0 * (bl2 - 2.0); b2 = rcp * ...
-
... SomeClass.new(\abc, 123, "xyz") { |one, two, three=42.7| var myVariable, test = pi*5, bool = true; if ((two & one) < 3) { // A comment... "hello".postln; (abc: $x, def: \y, ghi: nil); } { [~bar, zoo, thisProcess.platform]; }; }; Routine { i ...
-
... ------------- + Array { *regularPolygon { |size = 3, orientation = 0.0, wrap = 2pi| var theta; // orientation: keyword test if(orientation.isNumber.not, { orientation = switch(orientation, \vertex, { 0.0 }, \side, { pi / size }, \point, { 0 ...
-
... a stored signal to be used for the envelope of the grain. azimuth In radians, -pi to pi. elevation In radians, -0.5pi, to +0.5pi. rho The speaker radius; 1 places shound at the radius, <1 within the radius, >1 is outside the radius. Beyond ...
-
... e 2 D data with a sinusoidal relationship: s.boot; ~toydata = { var num; num = 2pi.rand; [num - pi / pi, num.sin]}.dup(10000); // Let's plot the data - looks just like noise? ~toydata.flatten.plot(numChannels: 2); // The following will plot ...
-
... us by some value. rotate(aNumber) Rotate the angle by some value. neg Rotate by pi. Conversion magnitude Answer the radius. angle Answer the angle in radians phase Answer the angle in radians real Answer the real part. imag Answer the imagi ...
-
... ; }; backColor.set; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.fill; Color.black.alpha_(0.9).set; Pen.width = 3; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.stroke; Color.white.alpha_(0.5). ...
-
... , periods, range, close; periods = f.get( \periods ); phase = f.get( \phase ) * pi; range = f.get( \range ); close = f.get( \close ).not.binaryValue; n.collect({ |i| (i.linlin(0,n-close,0,2pi * periods) + phase).sin.linlin(-1,1,*range); }); ...
-
... UGen('==',de,0).if(delta,de); ^[da,de]; } *limitElevation { |e,de| // e+de/2 <= pi/2 AND: e-de/2 >= -pi/2 e = min(e,(pi/2)-(de/2)); e = max(e,(-pi/2)+(de/2)); ^e; } *preserveArea { |preserveArea,da,e,de| /* if preserve_area : | da = da / co ...