-
... dioFunc = ( 'blip': { |rate = 1, freq = 100, noiseLevel = 0.125, blipLevel = 1| RandSeed.ir( 12345 ); // always the same noise ( Blip.ar( freq, 100, blipLevel * 0.125) + PinkNoise.ar( noiseLevel )) * LFPulse.kr(10 * rate); }, 'buf': { |bufP ...
-
... nitor.isPlaying, NTMI.g.main.sliderCols[0], NTMI.g.main.sliderCols[1]); var ndefRandSeed; var isDecoupled = NTMI.inph.decoupled.includes(ndef.key); var presetName = NdefPreset(ndef).currSet.key; var newLabel = ndef.key.asString; if (presetN ...
-
... 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 ...
-
... // 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."); } ...