Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... , height], wgrav, 20, 0.2); //dim,grav,maxvel,damp //--objects { var mass= 1.0.rrand(4); //random mass for each object RedObject(world, RedVector2D[width, 20].rand, 0, 0, mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.dra ...

  2. Bend Doc

    ... that returns a UGen graph // given a UGen graph ... ( { Splay.ar(SinOsc.ar({ exprand(300.0, 10000.0) } ! 17, 0, { 1.0.rand } ! 17)) * 0.1 }.play ) // ... all existing UGen inputs can be replaced or modified with an arbitrary function // e.g ...

  3. PostWindow Doc

    ... indow.window("My Post Window"); p.addLineToFork("hello"); 10.do{p.addLine(Array.rand(10,0.1,2.0));}; ( ["hello", "how", "are", "you", "isn't", "this", "a", "lot", "of", "nonsense" ].scramble.do{|item| p.addToFork(item); }; ) p.clear; //clea ...

  4. ProxyPreset Doc

    ... setTarg getSet setProxy getFromProxy currFromProxy stepCurr stepTarg Methods - randomizing settings randSet setRand someRand Methods - morphing and crossfading blend morph xfadeTo blendSets mapSet unmapSet Methods - storage storeToDisk sto ...

  5. CtkProtoNotes Doc

    ... doneAction: 2); src = SinOsc.ar(freq, 0, amp * envgen); Out.ar(0, Pan2.ar(src, Rand(-1.0, 1.0))); }), SynthDef(\control, {arg outbus, rate, low, hi; Out.kr(outbus, LFNoise2.kr(rate).range(low, hi)) }) ); ); ( a.add( SynthDef(\test2, {arg g ...

  6. 011-attraction2 Doc

    ... 5, 1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var mass= 0.5.rrand(10); RedObject(world, loc, 0, RedVector2D[1, 1], mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ world.objects ...

  7. IsEven Doc

    ... constructing a FunctionDef { }, and probably executes faster. ( Array.fill(20,{rand(100)}) .select(IsEven) .postln [ 12, 76, 76, 8, 18, 26, 30, 44, 24, 84 ] ) ⧉ ✔ Class Methods . value Arguments: obj Inherited class methods Instance Method ...

  8. SeenBefore Doc

    ... object. This can be used to eliminate duplicates. b = SeenBefore.new; f = { 100.rand }; // or choose a random soundfile path 100.do { arg i; var v; v = f.value; if(b.value(v),{ [k,v].postln }) }; ⧉ ✔ Class Methods . new No arguments Inherit ...

  9. CountLimit Doc

    ... reafter returns false. ( s = CountLimit.new(10); 100.do({ arg i; var r; r = 100.rand; if(s.value(r),{ [i,r].postln; }) }); [ 0, 58 ] [ 1, 37 ] [ 2, 39 ] [ 3, 82 ] [ 4, 99 ] [ 5, 93 ] [ 6, 27 ] [ 7, 38 ] [ 8, 20 ] [ 9, 77 ] ) ⧉ ✔ Class Metho ...

  10. the_lazy_proxy Doc

    ... derives its bus arguments from that input ~x = { Array.fill(14, { SinOsc.kr(1.0.rand, 0, 100) }) }; //~x is now 14 channels control rate ~x; ⧉ ✔ in order to reset these properties, clear is used: ~x.clear; //note that no other proxy should ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow