-
//redFrik RedBencode { *encode {|array| var res= List.new; array.do{|val, i| case {val.isInteger} { //integer res.add($i).add(val).add($e); } {val.isString} { //string res.add(val.size).add($:).add(val); } {val.isKindOf(Set)} { //dictionary ...
-
... ead(this.soundFilePath); //Error("Failed to open sound file").throw; sig = FloatArray.newClear(file.numFrames * file.numChannels); file.readData(sig); file.close; if(channel.notNil and: {this.numChannels > 1},{ sig = sig.clump(this.numChann ...
-
... ead(this.soundFilePath); //Error("Failed to open sound file").throw; sig = FloatArray.newClear(file.numFrames * file.numChannels); file.readData(sig); file.close; if(channel.notNil and: {this.numChannels > 1}, { sig = sig.clump(this.numChan ...
-
//redFrik RedIntelHex { var array; data { ^array.collect{|x| x[1]}.flat; } addressData { ^array; } hexFormatString { var str= ""; array.do{|x| str= str++x[0].asHexString(2)++":"; x[1].do{|x| str= str++x.asHexString(2)}; str= str++"\n"; }; ^ ...
-
... Opens the helpfile for the class in which the responding method is implemented. Array .helpFileForMethod( 'select' ); // This will open the Collection helpfile Conversion asClass Return this. asString Return the name of the class as a Strin ...
-
... curly brackets indicate a Function, square brackets define something called an Array. An Array is a type of Collection, which is (you guessed it) a collection of Objects. Collections themselves are Objects, and most types of Collections ca ...
-
/* gplv3 hjh */ // remove nodeAt + SequenceableCollection { asOSCPlugArray { |dest, downstream, bundle| var array = Array(100); // allocate a bunch of space this.do { |e| array = e.asOSCPlugEmbeddedArray(array, dest, downstream, bundle); }; ...
-
... =400, mute=0| case{order == 1} { var in1, // declare variables for the b-format array in2, in3, in4, decoded; #in1, // distribute the channels from the array in2, in3, in4 = in; ^ITU5001.ar(in1, // return the Ugen in2, in3, in4, gain: gain. ...
-
+ Collection { rejectSame { this.do({|item| var array; array = this.indicesOfEqual(item); if(array.size > 1, { array.copyRange(1, array.size-1).do({|item,index| this.removeAt(item-index); }); }); }); } busFunc { var args, brak1, brak2; if(t ...
-
... ot usable in all instances. Here is an example of how this can be done: flop { _ArrayMultiChannelExpand ^super.flop // this gets executed if the primitive fails } ⧉ ✔ Note that returning anything besides errNone will result in executing the ...