Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    extStatistics Additional statistics methods for arrays. Part of MathLib MathLib provides additional methods for Collection and SequenceableCollection . // Here's a pseudo-normal distribution which we'lll analyse in the following a = {45.0.s ...

  2. WFSPointArray Quark

    ... with GameOfLife WFSCollider. If not, see <http://www.gnu.org/licenses/>. */ WFSArrayBase[slot] : RawArray { asXYArray { ^this.collect({ |item| [item.x, item.y] }) } asAZArray { |center = 0| center = center ? this.center; center.asWFSPoint; ...

  3. Smacof Quark

    ... is a return value! } *new { ^super.new.init } calc {|data, nDims = 2| coords = Array.newClear(nDims)!data.size; // make a harmonic metric into an inharmonic metric inharm = data.collect{|row| row.collect{|elem| if (elem == 0) {0} {elem.rec ...

  4. TestFoaMatrix Quark

    ... ld match the number of encoded directions", report ); // dirChannels this.assertArrayFloatEquals( m.dirChannels.flat, // flat: array must be 1D to test directions.flat, "FoaEncoderMatrix:-dirChannels should match encoded directions", floatW ...

  5. SETOTarsusServer Quark

    ... arsusServer : SETOServer { var interface; var specs; var head; /** * @arg specs array of specs for each dimension [x, y, z] * */ *new {|netaddr, setoClass, interactionClass, specs, head = 3| ^super.new("_ixyzuvw", setoClass, interactionClas ...

  6. Preduce Quark

    ... '-' ], inf ), *b); x = a.asStream; x.nextN(20); ) // set theory examples: // an array of sets k = [[0, 3, 4], [0, 5, 7], [1, 3, 4], [-3, 4, 5]].collect( _ .as( Set )); // combine the array with a scrambled version of itself. // set operatio ...

  7. ModernLife Quark

    ... /dead state of cells and the population count. The first argument is the states array, which is an array of arrays, where each array is the states of rows from top to bottom. Run the code below: a = ModernLife .new(8, 80); a.userFunc_({ |st ...

  8. oscillOrc2 Quark

    ... \audio); Instr([\oscillOrc2,\randKlang ],{arg freq=500,qnty=10,amp; Klang.ar(`[ Array.rand(qnty.asInteger, 600.0, 1000.0), nil, nil ], freq/2000,0,qnty.reciprocal * amp) ; },nil,\audio); Instr([\oscillOrc2,\geomKlang],{arg freq=500,freqOffs ...

  9. DissonanceCurve Quark

    ... w { arg freqs, amps, highInterval = 1902; /*@ desc: Create a new curve based on arrays of data. This would mostly be used for additive synthesis. freqs: An array of signficant frequencies of a timbre amps: An array of amplitudes for the giv ...

  10. RedKMeans Quark

    ... t; if(centroids.isEmpty, { //only create new centroids after a reset centroids= Array.fill(k, {vectors.choose}); }, { if(k!=centroids.size, { //if k changed then truncate or extend if(k<centroids.size, { centroids= centroids.copyRange(0, k- ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow