-
... 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 ...
-
... 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 ...
-
... |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}); )
-
... )}; 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 ...
-
... 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 ...
-
... .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}); )
-
... 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= ...
-
... 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 ...
-
... 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 ...
-
... 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 ...