-
... or = Color .green( 0.5 ).alpha_( 0.75 ); p.do({ |pt| Pen .addArc( pt, 5 , 0 , 2 pi ).fill; }); if( a.notNil ) { Pen .color = Color .red; Pen .addArc( p[a], 5 , 0 , 2 pi ).stroke }; }; w.mouseDownAction = { |v, sx, sy| a = p.detectIndex({ |p ...
-
... analysis." Its implementation in SuperCollider: ```supercollider (0.cylBesselI(pi*a*(1-(2*x - 1).squared).sqrt)) / (0.cylBesselI(pi*a)); ``` When a is zero, Kaiser window reduces to the retangular window. The half-width of the mainlobe is ...
-
... ent z, which converts x and y to polar angle ( z = MKtlElement(\polar, (spec: [-pi, pi], type: \xyPolar, ioType: 'filter')); // x and y trigger z.action [x, y].do { |el| el.action.add(\toPolar, { z.doAction }) }; // define z.action z.action ...
-
... i; GUI.pen.color = Color.red.alpha_(0.2); GUI.pen.addAnnularWedge(point, 3, 9, pi, pi); GUI.pen.fill; GUI.pen.color = Color.black.alpha_(0.6); GUI.pen.addAnnularWedge(point, 3, 9, pi, pi); GUI.pen.stroke; GUI.pen.color = Color.black.alpha_ ...
-
... example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PFSinOsc (16, pi, 10, 60).trace).play a.stop a= Pbind ( \dur , 1/6, \legato , 0.2, \amp , PFSinOsc (16* PSinOsc (64, 0, 0.1, 1), 1.5pi, 0.25, 0.25).trace).play a.stop
-
... 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 * ...
-
... ------------- + 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 ...
-
... ; }; 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 ...