-
... ay, replace)\ \\ \\ \ addToSubTree \ |key, branch, subtree, replace=true| \ var index = this .detectIndexInPairs(key, subtree);\ \ ^if(index.isNil) \\ subtree.addAll(branch)\ \ \\ if(replace) \\ subtree[index + 1] = branch;\ subtree[index] ...
-
... ill; }; }); }); } getPoints { ^object.corners ++ [ object.center ]; } getNearestIndex { |point, scaler| // returns nil if outside radius var radius; radius = scaler.asArray.mean * 5; ^this.getPoints.detectIndex({ |pt, i| pt.asPoint.dist( po ...
-
... o be triggered when the button is pressed down. This Function takes the current index of the button as argument, i.e. pressing it down from its first state to its second state will call the Function passing 1 as argument. Arguments: aFuncti ...
-
... des.removeAt(nodenr)}); if(refresh == true, {this.refresh}); } setNodeLoc_ {arg index, argX, argY, refresh=true; // var x, y; // x = argX+bounds.left; // y = argY+bounds.top; paraNodes[index].setLoc_(Point(argX+0.5, argY+0.5)); if(refresh = ...
-
... t(otherKeys, value); } } + SequenceableCollection { // unified method for Array/index, Array of assocs and dicts valuesKeysDo { |func| if (this.isAssociationArray) { this.do { |assoc, i| func.value(assoc.value, assoc.key, i); }; }; this.do( ...
-
... fer.sampleRate; ^[startFrame, length, length/buffer.sampleRate] } maximumAmp { |index, length=1| var maxItem = 0; if(length == 1) { ^amps[index] ? 0.0 }; length.do { |i| maxItem = max(maxItem, amps[index + i] ? 0.0) }; ^maxItem } // backwar ...
-
... ut, UAdaptSpec({ |sp| sp.copy.warp_( \lin ) }) ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .canUseUMapFunc_({ |unit, key, umapdef| var spec; ...
-
... ut, UAdaptSpec({ |sp| sp.copy.warp_( \lin ) }) ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .canUseUMapFunc_({ |unit, key, umapdef| var spec; ...
-
... e defaults ***/ focusFrameColor=Color.clear; font=Font.default; archiveKeys = [\indexes,\followEdges,\tabPosition,\tabFocus]; swingFactor = Point(0.52146, 1.25); stringFocusedColors=[Color.white] ; stringColors=[Color.black] ; labelColors = ...
-
... il){synthDef.allControlNames}{synthDesc.controlNames}; ctrlNames.do({ arg item, index ; var name = item.name.asString ; var defVal = if(synthDef.notNil){synthDef.controls[index]}{item.defaultValue} ; var ctrl ; if (specs[name.asSymbol].isNi ...