-
... g i; // the octave Array.fill(resolution, {arg j; // the notes sndNameList.size.rand; // put a random sound into array }); }); }); }; ldSndsGBufferList.value(selbPool.items[0].asSymbol); soundFuncPop = GUI.popUpMenu.new(win, Rect(10, 54, 10 ...
-
... ving average factor // values are added with: a.addValue( 0.3 ); // create some randomlike data for testing: b = 1.0.rand; 50.do{ b = b + (0.2.rand2); a.addValue( b ); }; a.data.plot; // properties of the sensordata: a.longStdDev; // standa ...
-
... do { |x| x.join.postcs };""; ~indices.do(_.postln);""; ) ( var colors = { Color.rand(0.3, 1.0) } ! (~lines.size + 1); var views; var selection; w = Window().layout_( VLayout(*{ |j| var line = { StaticText.new } ! ~maxLineSize; views = views ...
-
... s etc var butzone = CompositeView(win, Rect(160, 0, 750, 25)).background_(Color.rand); // a userview to draw the numeric values on var uv = UserView(win, vbounds.top_(vbounds.height).height_(30)) .background_(Color.grey); try { win.alpha_(N ...
-
... ( \ , [[ \ , \ , \ ], data].flop.flat.postln)\ \)\ );\ \ e.do( _ .data = \ 1000.rand \.dup(3).postln );\ e.do( _ .start);\ \ \ \ f = e[0];\ \ f.nextIndex \Ê! 10;\ \ f.newChain;\ f.newChain(1, 3)\ f.newChain(0.1, 10, 0.0)\ f.newChain(0.1, 10 ...
-
... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...
-
/* dictionary that keeps objects with the same key in a list and returns randomly one of them */ FuzzyDictionary : IdentityDictionary { put { arg key, item; super.put(key, super.at(key).add(item)) } at { arg key; var list = super.at(key); l ...
-
... .at(selected).asString } maxIndex { ^list.size } choose { this.select(list.size.rand) } children { ^list } /* do not pre-load the children, just the initially selected one (the source) and the enveloped players prepareChildrenToBundle { arg ...
-
RandIDAllocator { classvar <>dict; *value { |server| var count; server = server ? Server.default; dict = dict ?? { IdentityDictionary() }; count = dict[ server ] ? -1; count = (count + 1).wrap(0, server.options.numRGens - 1); dict[ server ] ...
-
... var accumPos = pos.sampleOn(clicks).inject([], { |state,x| state.addI(T(x,Color.rand)) }); accumPos.collect{ |positions| var drawings = positions.collect{ |tup| PenDrawedShapes([PenWedge(tup.at1,10,0,2*pi)], \fill, tup.at2, Color.red) }; va ...