-
... .if { jacobian = [jacobian] }; x0.respondsTo('at').not.if { x0 = [x0] }; n = x0.size; (x0.size != func.size).if { Error("please make sure x0 contains at least the same nr. of elements as func").throw }; x0.isKindOf(Matrix).if { (x0.shape[1] ...
-
... inf.do({ cnt = cnt + 1 % 102; if(cnt == 101, {shread = shread + 1 % sh.size}); pitch = ~mthue.value(count,16,8); if(pitch > scale.size, {oct = 12}, {oct = 0}); pitch2 = ~mthue.value(count2,13,3); if(pitch2 > scale2. ...
-
... ) }.dup(5); // 12 items a = (1..12); e = EZScroller(w, Rect(100, 0, 14, 100), v.size, a.size, { |sc| var startIndex = sc.value.asInteger.postcs; v.do { |drag, i| drag.object_(a[(startIndex) + i] ? "") }; e.visible_(sc.numItems > sc.maxItems ...
-
... nd2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.rand); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.addForceAngular2D ...
-
... nd2; RedPendulum(world, loc, vel, 0, 60.rand, 20.rand) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.rand); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.addForceAngular2D ...
-
... ignal = sig; buffer = argBuffer; this.analyse(minLength); } numFrames { ^signal.size } numXings { ^xings.size } size { ^xings.size } frameFor { |startWs, numWs = 1, useFrac = true| var theseXings = if (useFrac) { fracXings } { xings }; var ...
-
... ar path = { var dir = [1,0]; var list = List.new; var idx = [-1,0]; var size = 8; size.do { arg x; if(x==0, 1, 2).do { (size-x).do { idx = idx + dir; list.add(idx); }; dir = [ -1 * dir[1], dir[0] ]; // rot ...
-
... didateIndexPairs, candidateIndexPairs].postln }; numPairs = candidateIndexPairs.size; numPairs.switch( 0, { if (verbose, { "no successors".postln }); nextVal = nil }, 1, { // if below minimum, or other reasons, accept single choice if ( (pr ...
-
... ion. static PyrInt8Array* MsgToInt8Array ( sc_msg_iter& msg, bool runGC ) { int size = msg.getbsize() ; VMGlobals *g = gMainVMGlobals ; PyrInt8Array *obj = newPyrInt8Array ( g->gc , size , 0 , runGC ) ; obj->size = size ; msg.getb ( (char * ...
-
... ((this.def !? { this.def.name } ? "mixed").asString + "(% units)".format( units.size )).asSymbol } fullDefName { ^((this.def !? { this.def.name } ? "mixed").asString ++ if( defNameKey.notNil && subDef.notNil ) { " /" + units[0].subDefNames. ...