Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. Grid Quark

    ... 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 ...

  2. BBCutBuffer Quark

    ... 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, ...

  3. Latency Quark

    ... 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 } ...

  4. greyball by till-bovermann (LFSaw) Code

    ... .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, { ...

  5. SequenceableCollection Help

    ... 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 ...

  6. SSWorld Doc

    ... 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 ...

  7. RecursiveCutProc1 Quark

    ... ,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) ...

  8. Recursion-toy-like vines with Pen by uiae (uiae) Code

    ... , 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 ...

  9. Osc Doc

    ... (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::

  10. CloudGenMiniBuf by bateslewis (bateslewis) Code

    ... , [ "/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[ ...

prev 121 122 123 124 125 126 127 128 129 130 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow