-
... zoom * sign ); } } }; // joyhat L R switches prev/next preset on inphlux, both: rand /// FIXME: mark modalAction has happened, // dont do basic action on second release m.getHalo.hatWasUsed = false; m.elAt(\joy, \l, \hat).elemDesc.label = " ...
-
... single + or - (exactly 2^26) // // maxAssocIntVal 144263 two adds over three operands, 3 * M^3 <= 2^53 // (the k * M^k of Note [Cross-reduction]; k // counts operands, not operations). Also used // for (a*b)*c, which needs only M^3 <= 2^53 ...
-
... .class; a.inspect; a.value; a = Pseq([Pfuncn({ |event| event.copy.put(\val, 1.0.rand) }, 2), Pfuncn({ |event| event.copy.put(\val, event[\max].rand) }, 2)], inf); x = a.asStream; x.next((max: 100, zz: 8)); a = Pmindread(Pseq([1, 0, 1, 1, 0, ...
-
... (world, RedVector2D[x, y], nil, nil, 0, 1/n*width) .coupling_(0.1/n) .freq_(0.1.rand) .phase_(2pi.rand) }; //--loop w.draw{ world.objects.do{|o| world.objects.do{|p| if(p!=o, { o.couple(p); }); }; }; world.objects.do{|o| o.update}; //--rend ...
-
... ublishCode( "fontsize" .cmd(24), "text" .cmd(txt, 10, 25, n.width, 50), "stroke(random(), random(), random(), random())" , "strokewidth(1)" , "line(0, HEIGHT / 2, WIDTH, HEIGHT / 2)" ); routine = Routine ({ var freq, mul, dur, scaleOval; sc ...
-
... droneLevel=0.0022,ffreq=8000,rq=0.2,decay = 0.3; RLPF.ar( Klank.ar( `[ Array.linrand(4, 50.0, 2000.0), nil, Array.rand(4, 0.2, 12.0) ], //drones PinkNoise.ar(LFNoise1.kr(3.0, 0.0008, droneLevel)) ).max(0) , Decay2.kr(trig, 0.004, decay, ffr ...
-
... i*20, 0, "test" ++i)}); g.plot ; g = Graph .new ; 500.do({ |i| g.addVertex(500.rand+300, 500.rand+150, 0, "test" ++i)}); g.plot ; ) changeVertexPosition (vID, x, y) Allow changing the position of a vertex by providing its viD and new coord ...
-
... hannel ) press and unpress all notes from the lang 10.do({ k.pressNote( 36 + 36.rand, 64.rand + 1 ) }); // 10 random notes k.unPressAll; activeNotes array with currently active notes. Last item is always the last note press 10.do({ k.pressN ...
-
... olar); if(change,{this.changed}); ^value } unmappedValue { ^spec.unmap(value) } rand { arg standardDeviation = 0.15,mean; // gaussian centered on the spec default var default,unmapped; mean = mean ?? {if(spec.default == spec.minval,{spec.ra ...
-
... lar); if(change, {this.changed}); ^value } unmappedValue { ^spec.unmap(value) } rand { arg standardDeviation = 0.15, mean; // gaussian centered on the spec default var default, unmapped; mean = mean ?? {if(spec.default == spec.minval, {spec ...