-
... var neighbors, vec, count, nearestNeighbors, velAvg, posAvg, nIdx; neighbors = Array.newClear(numBoids-1); nIdx = 0; // index for neighbors vec = RealVector2D.zero; // for rule 2 count = 1; // for rule 2 // get some averages posSum = posSu ...
-
... n_ { |aFunction| this.action_(aFunction); } states { ^thisStates } states_ { |anArray| this.free; anArray.do({ |item, index| if(item.isKindOf(String)) { anArray[index] = ( string: item, color: super.backgroundColor, fontColor: super.valueFo ...
-
... t label) to the spec. slot can be the node ID (one integer), or the slot ID (an Array of two integers). - Named access to nodes, values and actions - at ( key ) Returns the node or slot at key value ( key ) Get the value of the node or slot ...
-
... oxy var pspace = ProxySpace.all.selectAs({|space| space.envir.includes(proxy)}, Array).first; // first match pspace.isNil.if({ Error("AbstractPlayControl: could not find ProxySpace for given proxy. Did you name your proxyspace?").throw; }, ...
-
... ralyzer.help for a related tool. *ar(ins, specs, vol) // static settings ins an array of audio channels to be processed/adjusted specs the adjustment specifications: one list for each channel consisting of [ amp, a multiply factor for this ...
-
XiiToshioAgent { var node, oldnode; var toshioArray, agentArray; var userview; var clock, timermode, playmode; var outbus, globalvol; var server, poolName, tempo; var silentBuf, toshioNodeSampleIndexArray; var loopmode; *new {arg node, tosh ...
-
... s, anything. // all the math operations here: SimpleNumber.help // Collections, Arrays, Lists, Dictionaries [ 1, 2, 3 ]; [ 1, 2, 3 ].dump; List[ 1, 2, 3 ]; (a: 1, b: 2, c: 3); ~list = [ 1, 2, 3, 5 ]; ~list.dump; ~list.at(0); // at index beg ...
-
... estSnippets(sample) }; var numOverlaps = allSnips.size - 1; var shortOverlaps = Array.new(numOverlaps); numOverlaps.do({ |snip, i| shortOverlaps.add(allSnips[i][1] - allSnips[i+1][0] + 1) }); shortOverlaps.postln; ^shortOverlaps.every(_ > 0 ...
-
... 10, 5, 140, 16)) .font_(GUI.font.new("Helvetica", 9)) .items_(bufferDict.keys.asArray) .value_(0) .background_(Color.white) .action_({ arg item; }); delPool = GUI.button.new(win, Rect(10, 27, 67, 16)) .canFocus_(false) .font_(GUI.font.new(" ...
-
... uirements of the control of EventStreamPlayers with VarGui. "Event patterns and array args" focusses on passing arrays to synths with patterns. "enum" is a general enumeration method suited for many combinatorial problems such as listing su ...