-
... ostln;}) .nodeUpAction_({ arg nodeloc; nodeloc.postln}); 30.do({ a.setState_(24.rand, 8.rand, 1); // column, row, state }); ) b = a.getNodeStates // clear the grid a.clearGrid // set it back to previous state a.setNodeStates_(b) // draw on ...
-
... ary buffer mirrored here? //offset choosing object as part of this- defaults to random positions based on imposed grid //var <>grain=0.5, <>randomoffset=0.0; //for continuous write, offset is relative to write head pos- else for fixed bufs, ...
-
... that does nothing runs really fast bench({ nil }); // filling a big array with random numbers takes a while longer. bench({ Array.rand(100000, 0.0, 1.0) }); // different operations may take different times bench({ 1000000.do { 3.sqrt.cos } ...
-
... .choose, \decay, [0.1, 0.2, 0.4, 1].choose, ] ), Rand(-1, 1)); }.sum; HighShelf.ar(src, \shelfFreq.kr(1000), \shelfslope.kr(1)); }) ) Ndef(\src).play; Ndef(\hole).play; ( Ndef(\hole, { ...
-
... default: 0) Array .fib(5); Array .fib(5, 2, 32); // start from 32 with step 2. *rand(size, minVal, maxVal) Fill a SequenceableCollection with random values in the range minVal to maxVal. Array .rand(8, 1, 100); *rand2(size, val) Fill a Sequ ...
-
... something with more fun... ( t=Task({ inf.do{ w.gravity_((3.0.dup(3).collect(_.rand2)).postln); w.friction_(1.0.rand); w.gravity_(1.0.rand); 2.wait; w.gravity_([0,0,0]); 5.wait; } }); t.play; ) t.stop // if we want to stop an object, we us ...
-
... ,rf,of,rl; cutfunc= cf ? {[1.5,1].wchoose([0.666,0.334])}; repeatfunc= rf ? {(2.rand)+1}; offsetfunc= of ? {arg q,bpsubdiv; rrand(0,q - 1)*bpsubdiv}; reclevel= rl ? 2; offsetlist= Array.new(0); } chooseblock { var next; if((offsetlist.size) ...
-
... , radius:radius, generation:1, growing:true, age:0, wanderStep: rrand(q.minWanderStep, q.maxWanderStep), growthRate: rrand(q.minGrowthRate, q.maxGrowthRate), shrinkRate: rrand(q.minShrinkRate, q.maxShrinkRate), fRend ...
-
... (s, [\out, 0, \bufnum, b.bufnum]); ) ( fork { var n = 32; 50.do { b.sine1(Array.rand(n, 0, 1).cubed, true, true, true); 0.25.wait; }; }; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Osc.schelp link::Classes/Osc::
-
... , [ "/s_new", e.synName ? \bufGab, -1, 0, 0, \rate, ~dirSwitch*(exprand(e.current.rateRange[0], e.current.rateRange[1])), \bend, exprand(e.current.bendRange[0], e.current.bendRange[1]), \pos, rrand(e.current.posRange[ ...