-
... lVal.isNil or:{kVal.isNil or:{freqVal.isNil }}}, {^inval}); y= y+(kVal*sin(x))%2pi; x= x+y%2pi; x= x*freqVal; inval= (x-pi*(1/pi)*mulVal+addVal).yield; }; ^inval; } } PFBSineN : Pattern { var <>freq, <>im, <>fb, <>a, <>c, <xi, <yi, <>mul, < ...
-
... filters:0), MouseX.kr(0, 360), MouseY.kr(-90, 90 ), beam_order:3 )}.play // ask Pierre about <:(_,_) output to stereo // check this in terms of what works ~order = 3; {HOABeamHCard2Hoa.ar(~order, HOAEncEigenMike.ar(~order, {WhiteNoise.ar(10 ...
-
... s.width / 2) - 2; #points, pos = 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( * ...
-
... 0, 200)}!20, 0, 5).tanh, spread: 2, orientation: WhiteNoise.ar.lag(LFDNoise3.ar(pi.reciprocal).exprange(0.000001, 0.001))).tanh}).fadeTime_(2).play ( // push the cadavre as a new gist var username = nil; // set your user and pasword if you ...
-
... ds.height/2) ); Pen.lineTo( 0@(svals[0]) ); Pen.fill; Pen.addArc( pt[i], 5, 0, 2pi ); Pen.color = color.alpha_(0.75); Pen.stroke; }); Pen.color = Color.blue(0.5); Pen.moveTo( 0@(svals[0]) ); svals[1..].do({ |val, i| Pen.lineTo( (i+1)@val ); ...
-
... s. It manages the initialization and deallocation of resources relevant to your pieces in a simple manner. See also: MoltenPiece MoltenPlayer Creation / Class Methods *new (argNumPieces) argNumPieces - Number of piece slots to allocate. Sho ...
-
... \sign, \frac, \scurve, \neg, \squared, \cubed, \abs, \ceil, \floor, \sqrt, // copied methods \degrad, \raddeg, \nextPowerOfTwo, \nextPowerOfThree, ]; classvar binaryOps = #[ '+', '-', '*', '/', \pow, \mod, \min, \max, \amclip, \scaleneg, \c ...
-
... , -3.14, -3.14], ["inf", inf, "\"inf\""], ["negative inf", -inf, "\"-inf\""], ["pi", pi, 3.1415926535898], ["exp writing", 1e5, 100000.0], ["neg-exp writing", 1e-5, 0.00001], ["hex", 0x10, 16], ].do({|v| var o = (v[0]: v[1]).postln; var j = ...
-
... g rather than answering nil]. test_ZeroDenominator { [1, -1, 0, 100, -100, 0.5, pi].do { |num| this.assertException({ Rational(num, 0) }, Error, format("Rational(%, 0) is refused", num)); }; this.assertException({ Rational(1, 2) / Rational( ...
-
... Action:2); var env = EnvGen.kr(Env.linen(atk, time, rel), doneAction: 2); sig = PitchShift.ar(sig, pitchRatio: stretch); sig = sig * env; sig = tanh(sig * (1 + boost)); OffsetOut.ar(out, Pan2.ar(sig, pan, amp)); }).store(); ); ( SynthDef(\S ...