-
//k-means clustering2 //points in space moving around at random - kmeans find central point and draw a blob ( var width= 640, height= 480, w, wgrav, world, n= 100, kmeans; //--world w= RedWindow("k-means2", Rect(128, 64, width, height)).fro ...
-
//k-means clustering2 //points in space moving around at random - kmeans find central point and draw a blob ( var width= 640, height= 480, w, wgrav, world, n= 100, kmeans; //--world w= RedWindow("k-means2", Rect(128, 64, width, height)).fro ...
-
... and Moving the Flock centerInstinct innerDistance matchVelocity maxVelocity minSpace moveFlock Targets and Obstacles targets addTarget editTarget removeTarget clearTargets obstacles addObstacle editObstacle removeObstacle clearObstacles At ...
-
... , $n -> 57, $m -> 58, $, -> 59, $. -> 60, $/ -> 61, \return -> 36, \tab -> 23, \space -> 65, \esc -> 9, $` -> 49, 'arrow up' -> 111, 'arrow down' -> 116, 'arrow left' -> 113, 'arrow right' -> 114, ] }; // arrowsModifiers = IdentityDictionar ...
-
+ StartupFile { *choose { "%: renamed to StartupFile.dialog...".postln; this.dialog } // numToShow can be used to try different numbers of files/buttons *dialog { |numToShow| var w, dropper, nameView, saveBut, buttons, openButtons; var onCo ...
-
/* FILENAME: SCMControlSpecView DESCRIPTION: Enter a control spec name or new instance by code. This view component takes care of the interpretation. - The model is updated when a controlspec string is succesfully interpreted. AUTHOR: Marin ...
-
... freq=700,keyrq=0.3, drive=2,decay=0.3, refresh=0.248,lift=0.744, slewRise=2550, space = 1.0, freq2=100; var lo,hi,guide,bass,mono; var slewed; mono = NumChannels.ar(audio,1,false); //Mix.new(audio ?? { [0,0] }); lo = BPF.ar( mono, ffreq,rq) ...
-
... e back the impulses, higher numbers (up to near 1.0) fill out the inter-impulse space, integrating the waveform. Inherited class methods Instance Methods Inherited instance methods Examples { BlitB3Square.ar(XLine.kr(1000, 20, 10)) }.play; ...
-
... mPoints = (frameRate*interpolationDensity) * last; // these points are unevenly spaced along u t1 = spline.interpolate(numPoints); step = last / numPoints; r = Routine({ t1.do { arg p, i; if(p[0] >= t, { [p, t1.at(i+1)].yield }); }; [nil, n ...
-
... var n0, n1, n2; // Noise contributions from the three corners // Skew the input space to determine which simplex cell we're in var s = (xin+yin)*kF2; // Hairy factor for 2D var i = floor(xin+s).asInteger; var j = floor(yin+s).asInteger; var ...