Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    + Array {// gauss-jordan matrix elimination, by Kathi Vogt eliminateMatrix { var array = this.deepCopy; var lastRow = this.size - 1, lastCol = this[0].size - 1; var n = min(lastRow, lastCol); var z, diag, fk, ee; (0 .. n - 1).do {|i| diag = ...

  2. README Quark

    # Array Flatten [![NPM version][npm-image]][npm-url] [![NPM downloads][downloads-image]][downloads-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] > Flatten an array of nested arrays into ...

  3. SPList Quark

    ... "file exists:"+anafilename+"no need to analyze again.").postln }; } prFillPeriodArray{arg parent; var ana=File.new(anafilename, "rb"); parent.array=Array.fill(ana.length/48,{|i| Period.newUsing(this,parent,i,*({ana.getDoubleLE}!6))}); } // ...

  4. MNamedList Quark

    ... y clear *new { |pairs| ^this.fromPairs(pairs); } // very efficient *newUsing { |array, names| ^super.newUsing(array ?? {[]}).init(names); } // conversions *fromPairs { |pairs| var names, values; pairs = pairs ?? {[]}; #values, names = pairs ...

  5. NamedList Quark

    ... y clear *new { |pairs| ^this.fromPairs(pairs); } // very efficient *newUsing { |array, names| ^super.newUsing(array ?? {[]}).init(names); } // conversions *fromPairs { |pairs| var names, values; pairs = pairs ?? {[]}; #values, names = pairs ...

  6. MultiPlot Quark

    // wslib 2007 // plot multiple arrays on top of eachother // example: /* MultiPlot( [ (-10,-9..10), (-20,-18..20).fold(-10,10), { 3.0.rand2 } ! 20 ] ) */ MultiPlot { *new { |arrays, width = 600, height = 400, colors, background, hLinesAt, v ...

  7. Cluster Quark

    ... w.gnu.org/licenses/>. */ // class to apply methods to all elements of the items array // all items should be of type oclass //To Do merge Cluster and ClusterBasic into just one, and subclass as appropriate. Cluster{ var <items, <oclass; prC ...

  8. extSequenceableCollection Quark

    ... n);"" a = meshgrid([1,2,3], [6,7,8], [10,12]).do(_.postln);"" */ meshgrid { |...arrays| ^this.class.meshgrid([this] ++ arrays) } /* a = Array.meshgrid([[1,2,3,4], [6,7,8,9,10]]).do(_.postln);"" a = Array.meshgrid([[1,2,3], [6,7,8], [10,12]] ...

  9. Collection Quark

    ... result = this.species.new(this.size); this.do({ arg item; (item.isNil || item.asArray.isEmpty).not.if({ result.add(item) }); }); ^result } // output a new collection with counts of occurrences within a range of deviation //the .inRange meth ...

  10. Event patterns and array args Quark

    Event patterns and array args setting and passing arrays and envelopes via patterns Part of: miSCellaneous This tutorial covers some use cases of array args, especially passing arrays to synths with patterns. Examples 1.) Alternative writin ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow