Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (535) Code (6) Doc (245) Help (16) Quark (266) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. BBCutProc11 Quark

    ... vbeats/subdiv; unitsdone= 0; repeats=0; //no longer any accounting for repeats, render scheme is a block of repeats at a time } ); unitsleft= totalunits- unitsdone; //always create a new block //chance of stutter if( (stutterchance.value.co ...

  2. CutFunc Quark

    ... nction called at Cut, Block or Phrase, function is placed in an Event for later rendering, via BBCutBlock and clock CutFunc : CutSynth { var <>cutfunc, <>blockfunc, <>phrasefunc, <>compensate; *new { arg cutfunc, blockfunc, phrasefunc, comp ...

  3. 121-collision_boids Quark

    ... |oo| o.collide(oo)}; //faster but less accurate o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  4. 131-obstacle_rocks Quark

    ... )}; o.update; //object update world.contain(o); //keep within world borders //--render if(o.isKindOf(RedRock), { Pen.fillColor= Color.blue(1, 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }, { Pen.strokeColor= Color.grey(0.7, 0.9); Pen.stro ...

  5. NB_Tests Quark

    ... 0, 10, 100, 100); n.fill(1, 1, 1); n.text( "This is the 3rd test" , 10, 140); n.render ) // then, in SuperCollider (this should show, in the Post window, that a "test3.png" file is in /tmp "ls /tmp/" .unixCmd // assuming the "test3.png" fil ...

  6. 050-boids Quark

    ... .addForce(world.gravity); //no gravity involved o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  7. CampCutProc Quark

    ... lutions always swap val and one above val offsetlist.swap(val,val+1); }); }); //render block //always new slice/roll to calculate cuts=[blocklength]; this.updateblock; //to minimise floating point errors? //if(block==(bells-1),{blocklength= ...

  8. 220-lorenz_attractor Quark

    ... op w.draw{ obj.vel= lorenz.value(obj.loc, ~sigma, ~rho, ~beta); obj.update; //--render Pen.fillColor= Color.grey((obj.loc[2]/(depth*0.5)).clip(0, 1)); Pen.fillOval(Rect.aboutRedVector3D( (obj.loc*15+[width*0.5, height*0.5, depth*0.5]).at(~o ...

  9. 053-boids_1d Quark

    ... addForceWander1D; o.addForceArrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot ...

  10. 008-multiple-3d Quark

    ... world.objects.do{|o| o.addForce(world.gravity); o.update; world.contain(o); //--render Pen.strokeColor= Color.grey((depth-o.loc[2]/(depth*0.5)).clip(0, 1)); Pen.strokeRect(Rect.aboutRedObject3D(o, s, f)); }; }; w.play; CmdPeriod.doOnce({w.c ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow