-
... an element of R^N Inherits from: Object : Collection : SequenceableCollection : ArrayedCollection : AbstractArray: AbstractVector Represents an element of R^N. Usual operations are implemented. Note: for 2D and 3D vectors, there are availab ...
-
... nction of the class that one wants to make an instance of some type class. */ + ArrayedCollection { swapI { arg i, j; ^this.copy.swap(i,j) } remoteAtI { arg index; ^this.copy.removeAt(index) } addI { arg item; ^this.copy.add(item) } sortI { ...
-
... his).linkValue(obj)}, // {MethodController(this).link(obj)} // ) // } // } // + ArrayedCollection { // makeMethodController{|spec=(NonSpec)| // ^this.collect{|item,i| // MethodController.forArray(this,i,spec: spec); // } // } // }
-
... element of F N . Inherits from: Object : Collection : SequenceableCollection : ArrayedCollection : AbstractVector Represents an element of F N , where F is either the real numbers R or the complex numbers C. Usual operations are implemente ...
-
... his.interpret.draggedIntoMTGui(gui, index) } } // chuckable browser uses this + ArrayedCollection { keys { ^(this.size == 0).if({ [] }, { (0..this.size-1) }); } } // for passing parms in dictionaries + Object { atBackup { |key ... fallbacks ...
-
... his.interpret.draggedIntoMTGui(gui, index) } } // chuckable browser uses this + ArrayedCollection { keys { ^(this.size == 0).if({ [] }, { (0..this.size-1) }); } } // for passing parms in dictionaries + Object { atBackup { |key ... fallbacks ...
-
... 0; while ({ i < this }, { function.value(i, {|val| ^val }) ; i = i+1; }); } } + ArrayedCollection { // - thor /* [11,22,33,44,55,66,77].loop({arg item, i, break; item.postln; if(item == 33, {break.value(222)})}) */ loop {arg function; var i ...
-
... [0,1,0,1]| ^super.newCopyArgs( default ); } *testObject { |obj| ^(obj.isKindOf( ArrayedCollection ) ) && (obj.size == 4); } constrain { |value| value = value.asCollection; if( value.size != 4 ) { value = value.extend( 4, 0 ); }; ^value.clip ...
-
... of any dimension, with optimized classes for 2D and 3D. AbstractVector[slot] : ArrayedCollection { species { ^this.class } //usual notation up to 3D vectors x { ^this.at(0) } y { ^this.at(1) } z { ^this.at(2) } //inner product <|> { |vec| ...
-
... |line|" %".format(line).postln}; }; } verbose {|who, level = true| who.isKindOf(ArrayedCollection).if{ who.do{|w| this.verbose(w, level)}; ^this; }; if(level, { verboseLevels.add(who.asSymbol); }, { verboseLevels.remove(who.asSymbol); }); } ...