-
... ubdiv; //calculate blocks list for this phrase offsetlist= rcd.offsetseq; }); //render block next=offsetlist.at(block); blocklength=next.at(0)*primitive; cuts=[blocklength]; this.updateblock; //proportionate- will be taken as percentage thr ...
-
... offset=(nextblock.at(1))*(offsetscale.value); //offsets are now decided by cut renderer bbcutsynth.setoffset(offset,currphraselength); this.updateblock; this.endBlockAccounting; } }
-
... ,{}); //bbcutsynth.setoffset(currform[block]); //offsets are now decided by cut renderer bbcutsynth.chooseoffset(phrasepos,beatspersubdiv,currphraselength); this.updateblock; this.endBlockAccounting; } }
-
... VirtualEnvironment Provides a virtual room with sources, listener and binaural rendering */ VirtualRoom { // the path to Kemar classvar <>kemarPath = "KemarHRTF/"; // the node proxies var <>encoded, <>bin, <>out, <>revIn; // maximum of sou ...
-
... e; trg.update; world.contain(obj); world.contain(obj2); world.contain(trg); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.line(obj2.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.re ...
-
... ity); //add gravity o.update; world.contain(o); //keep within world borders //--render Pen.fillColor= Color.hsv(o.mass/25%1, 1, 1, (o.vel.mag*0.5).min(1)); Pen.fillRect(Rect.aboutPoint(o.loc.round.asPoint*[wn, hn], pixelSize, pixelSize)); } ...
-
// 1 event with 10 seconds duration ( r = UChain(0,0,10,false,[\sine,[\freq,rrand(200.0,500.0)]], \output).fadeOut_(1).fadeIn_(1); z = UScore(r); if( z.finiteDuration != 10) { "finiteDuration should be 10".throw }; x = UScoreEditor(z); y = ...
-
... [\freq, freq, \maxDur, osize, \amp, amp, \pan, pan]); }); world.contain(o); //--render Pen.strokeColor= Color.grey(o.mass/4, 0.7); Pen.strokeOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })
-
... vel.asPoint.rotate(0.5.rand2).asRedVector2D; o.update; world.contain(o); }; //--render all objects world.objects.do{|o, i| //iterate all objects in this world Pen.addRect(Rect.aboutRedObject2D(o)); }; Pen.stroke; }; w.play; CmdPeriod.doOnce ...
-
... [\freq, freq, \maxDur, osize, \amp, amp, \pan, pan]); }); world.contain(o); //--render Pen.strokeRect(Rect.aboutRedObject2D(o)); Pen.fillRect(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); })