-
... var neighbors, vec, count, nearestNeighbors, velAvg, posAvg, nIdx; neighbors = Array.newClear(numBoids-1); nIdx = 0; // index for neighbors vec = RealVector3D.zero; // for rule 2 count = 1; // for rule 2 // get some averages posSum = posSu ...
-
... Size = 0; *new { |score| ^super.newCopyArgs( score) .init } init { undoStates = Array.newClear( maxUndoStates ); } *initClass { clipboard = []; } *current { ^UScoreEditorGUI !? { |x| x.editor } } events { ^score.events } events_ { |events| ...
-
... ar <>name, <transform; elementName { ^"desc" } allObjects { ^this } asAttributesArray { ^[] } addDOMAttributes { |element| this.asAttributesArray.do({ |item| if( item[1].notNil ) { element.setAttribute( item[0], item[1].asString ); } }); ^e ...
-
... t.new; var bw= 20, lh= 14; view= this.prContainer; views= List.new; insertEfxs= Array.newClear(numInserts); insertWins= Array.newClear(numInserts); view.layout= VLayout(*[ //--effect inserts numInserts.collect{|i| var popup, button; HLayout ...
-
... for a SequenceableCollection of tuples [symbol, n], // where n > 1 indicates an arrayed arg // miSC_pfuncPbindsFromTuples and miSC_sVarGuiSpecsFromTuples exist // to avoid multiple lookups in SynthDef metadata by pVarGui var pat, keyPfuncPa ...
-
... rmats, server.recSampleFormat ) } ) } setPopupItems { |popup, items, value| var array = items.collect(_.asSymbol); popup.items_(items); popup.value_(array.indexOf(value.asSymbol)); } swapView { |buttonValue| var simple = [simpleView, specia ...
-
... see <http://www.gnu.org/licenses/>. */ USession : UArchivable{ /* * objects -> Array[UChain,UChainGroup,UScore or UScoreList] */ var <objects, <name = "untitled"; *new{ |...objects| ^super.new.init(objects); } init { |inObjects| objects = ...
-
... see <http://www.gnu.org/licenses/>. */ USession : UArchivable{ /* * objects -> Array[UChain,UChainGroup,UScore or UScoreList] */ var <objects, <name = "untitled"; *new{ |...objects| ^super.new.init(objects); } init { |inObjects| objects = ...
-
... Size = 0; *new { |score| ^super.newCopyArgs( score) .init } init { undoStates = Array.newClear( maxUndoStates ); } *initClass { clipboard = []; } *current { ^UScoreEditorGUI !? { |x| x.editor } } events { ^score.events } events_ { |events| ...
-
... e elements ~a[0] = 72.5; ~a[1] = 74.5; ~a[2] = Prand ([85, 86, 87]); // replace array // Ptuple and PLtuple start with new embedding of ALL patterns // if one ends, so here default repeats = inf of PLshuf has no effect: // new permutation w ...