-
... ef('draw').add(\grad, { |uv| var count = q.draw.counter * 0.0162; // thisThread.randSeed_(1); 1.do { |ii| var cols = 2.collect{|i| Color.hsv( (ii/4) + (i/ 2) + count % 1, 1,1, 0.8)}; Pen.addRect( Rect.newSides(0,0, q.draw.extent.x, q.draw.e ...
-
... not given, Pif returns control to the parent upon nil from either branch. Pseed(randSeed, pattern): Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the ...
-
... Example 2: the reset function ( f = { 33.rand }; x = FuncStream(f, { thisThread.randSeed_(345) }); x.reset; 10.do({ [f.next, x.next].postln }); x.reset; 10.do({ [f.next, x.next].postln }); ) ⧉ ✔ Routine(nextFunction, stacksize) In a FuncStr ...
-
... not given, Pif returns control to the parent upon nil from either branch. Pseed(randSeed, pattern) Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the ...
-
... amp=0.3; var env1, env2, out, oscs1, noise, n, n2; n = 5; thisThread.randSeed = 4; env1 = EnvGen.ar(Env.new([0, 1.0, 0], [0.001, 0.2], [0, -12])); env2 = EnvGen.ar(Env.new([0, 1.0, 0.05, 0], [0.002, 0.05, 0.03], [0, -4, - ...
-
... // pseudo randomness used for colors randData = thisThread.randData; thisThread.randSeed = 2017; window = Window( "systems ∿ encounter", Rect(0, 0, width, height), false ).decorate; window.onClose_({isClosed = true}); decorator = window.vie ...
-
... Routine({ loop { WFSPoint.rand(radius).yield } }); if( rSeed.notNil ) { routine.randSeed = rSeed }; ^WFSPointArray.fill(nPoints, { routine.next }); } *rand3D { arg nPoints = 10, min = -1.0, max = 1.0; //simple 2D rand ^WFSPointArray.fill(nP ...
-
... r <>numTests = 50; var <>seed = 147; var <>isVerbose = true; setUp { thisThread.randSeed = seed } test_Setters { var rat = 1 %/ 2; rat.numerator_(3); rat.denominator_(3); this.assert(rat == Rational(1, 1), "Setter mutation test passed."); } ...
-
... er v[\record] = true; // Recording the output // Piece version thisThread.randSeed = v[\seed]; // Tempo variation t.tempo = 1; t.sched(0, {|beat| t.tempo = (60 + (12*sin((beat/200)*(2*pi))))/60; 1;}); v[\partDur] = 41; // Si ...
-
... streams into an FFT chain buffer RandID - Set the synth's random generator ID. RandSeed - Sets the synth's random generator seed. SetBuf - (Undocumented class) WrapSummer - Pulse counter with floating point steps XFade2 - Equal power two c ...