-
... ht velocity : maximum velocity allowed in the world, in m/s. Default to 100. damping Coefficient of energy loss when an object rebounces in the wall. 0 for nothing and 1 for all. Default to 0.25 friction Coefficient of velocity loss in cont ...
-
... in seconds freq = dur.reciprocal; { // imaginary HilbertWIm.ar( SinOsc.ar(freq, pi/2), // cosine test, one cycle over fftbuffer size size: size); }.loadToFloatArray(overSample * dur, s, { |arr| defer { arr = arr.copyRange(start, start+size- ...
-
... = List[]; q.numBranches.do{ arg i; theta = (i / q.numBranches) * 2pi; radius = q.maxRadius; q.branches.add(q.makeBranch(x, y, theta - (pi/2), radius)); } }, fUpdate: { arg env; var index; var nu ...
-
... taps. The reverb can be frozen by setting the reverberation time to infinity. Empirical tests have shown that this remains stable for at least a few minutes. This reverb was written by Nathan Ho specifically for SuperCollider, ChucK, and Au ...
-
... 8}!48; selected = Set[]; navigateIdx = 0; fac = 0.8660254037844388; // (0.5/tan(pi/6)).asCompileString; this.createRects; parent.isNil.if{ parent = Window.new(\Manta, Rect(100, 100, 345, 235)).decorate; parent.front; }; this.createView(pare ...
-
... splayImage ) /* ----- ----- ----- ----- */ /* ----- ----- ----- ----- */ ( // copied very literally from the nodebox demo of the same name n = NB .new( "HowCurvesWork" , 200, 200); n.publishAndDisplayCode( "# This boring example demonstrate ...
-
... 0); sig = Mix.fill( 6, { |i| SinOsc.ar( (36 + ((line + (i*12)) % 60)).midicps, 2pi.rand, (sin((((line*0.083333333333333)+i)%5)*(0.2*pi)).abs)*0.2 ); }); sig }.play ----------- { SinOsc.ar( Stepper.kr( Impulse.kr(XLine.ar(10, 120, 20, doneAc ...
-
... the values to floats k = Routine { 0.5.wait; inf .do { |i| useAndModify.value([pi, 0.5pi, 2pi], "thread 2>" ); rrand(1, 5).wait; } }; u.play; k.play; );
-
... nd = color From superclass: View Sets the color used to fill the whole area occupied by the view below the drawing done in -drawFunc . You can set the background at any moment, even within the drawFunc , but any drawing done in that Functio ...
-
... ypot(x, y) } //2D only - distance theta { ^atan2(y, x) } //2D only - azimuth - 2pi (watch out: turned a quarter) dist { arg aWFSPoint; //ws - optimized calculation aWFSPoint = aWFSPoint.asWFSPoint; ^(sqrdif(x, aWFSPoint.x) + sqrdif(y, aWFSP ...