Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3508) Code (266) Doc (1134) Help (293) Quark (1779) Plugin (36) SCDoc ↗ Forum ↗ Google ↗
  1. RedBencode Quark

    //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 ...

  2. Sample Quark

    ... 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 ...

  3. Sample Quark

    ... 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 ...

  4. RedIntelHex Quark

    //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"; }; ^ ...

  5. Class Help

    ... 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 ...

  6. Presented in Living Stereo Help

    ... 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 ...

  7. asPluggable-ext Quark

    /* 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); }; ...

  8. HOADec5_0 Quark

    ... =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. ...

  9. extCollection Quark

    + 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 ...

  10. WritingPrimitives Doc

    ... 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 ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow