Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ulsion { acc= RedVector2D[0, 0]; vel= RedVector2D[0, 0]; loc= RedVector2D[width.rand, height*0.5]; RedObject(world, loc, vel, acc, 1, 0.5); }.dup(n); //--loop w.draw{ rep.loc= RedVector2D[ sin(w.frame*0.02+sin(w.frame*0.001))*0.5+0.5*width, ...

  2. 120-collision_objects Quark

    ... ], wgrav, 10, 0.6); //dim,grav,maxvel,damp //--objects { var vel= RedVector2D[2.rand2, -5]; //random initial velocity for each object var mass= 0.5.rrand(4); //random mass for each object RedObject(world, RedVector2D[width, height].rand, ve ...

  3. init_purloined_letters Quark

    ... NetAddr("127.0.0.1", 57120); // stamp is a letter id. q.makeStamp = { 100000.0.rand }; q.responderActive = { |q, resp| OSCresponder.all.includes(resp) }; // this listens to every letter. q.logResponder = OSCresponderNode(nil, \recieveLette ...

  4. scaleStream Quark

    ... is a FloatArray a stream of scales is a sequential series of these arrays ( // random pentatonics p = Instr("scaleStream.randpentas"); // returns a pattern when valued x = p.value(4,16,0); Pbind ( \degree , Pseq([1,3,5,7,9,11,3,2],inf), \s ...

  5. PostWindow Quark

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

  6. 3a_userDir_POOL Quark

    ... umber // or a function that generates an index number: \robTron -> { |pre| 2000.rand }, ];

  7. IBVAfake Quark

    ... Routine({ this.setSamplingRate(rate); this.setFilterCutoff(cutoff); data= {1024.rand}!4; //fill with random data inf.do{ if(mute.not, { data= (data+({0.gauss(10)}!4)).asInteger.clip(0, 1023); action.value(*data); }); (1/sr).wait; }; }).play ...

  8. 121-collision_boids Quark

    ... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 5].rand2; var mass= 0.5.rrand(4); RedBoid(world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(1.rrand(6)) ...

  9. dog Quark

    ... 10, resfreq = 500, ringtime = 0.01| var n = 15; var env = EnvGen.kr( Env({ 1.0.rand2 }!(n+1), {1.0.rand}!n, curve, releaseNode: n-1, loopNode: loopnode.min(n-3)), timeScale: timescale); var pitch = (env * [1, 0.33, -1] * intv).midiratio * ...

  10. gendyfyre Quark

    ... utate q.gendy = q.gendy ? (); q.gendy.maxSegs = 42; q.gendy.levels = { 1.0.bilinrand }.dup(41); q.gendy.times = { exprand(3, 300) }.dup(42); /* q.gendy.times = { 30 }.dup(42); q.gendy.levels = ([1, -1] / (1..21)).flat.keep(41); // debug q.g ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow