Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... .location) ~node.nearestToNode[0].location */ TestKDTree : UnitTest { classvar <array, <size, <dims, <tree, <array2, <tree2, <>dumpTrees=false; setUp { } tearDown { } // Creates a 3D data structure and tests whether certain searches return ...

  2. ATSSynth Quark

    ... es clicks). freqEnv { |partialIdx| var freqVals = atsSound.freqs[partialIdx].as(Array); var ampVals = atsSound.amps[partialIdx].as(Array); var n = freqVals.size; var held = Array.newClear(n); var lastGood = nil, times; // Forward fill: repl ...

  3. extMix-panSpread Quark

    ... ources over specific number of speakers // using PanAz. + Mix { *panSpread {arg array, nCha = 2, width = 2, offset = 0; //array must be audio-rate this.deprecated( thisMethod, Meta_SplayAz.findMethod(\ar) ); ^Mix.fill( array.size, { |i| Pan ...

  4. SortedNList Quark

    ... // when maxsize, only add if better than last element, if (function.value(item, array.last)) { array.pop; ^super.add(item); }; // else do nothing, i.e. just drop item } // always add them one by one to maintain maxSize addAll { |aColl| aCol ...

  5. XiiBufferPlot Quark

    ... 190, 705, 170)) {SinOsc.ar(200)}.play */ XiiBufferPlot { var plotter, txt, chanArray, unlaced, val, minval, maxval, window, thumbsize, zoom, width, layout, write=false, chanPlotter, bounds; var bufferFloatArray, theBuffer; *new { arg buffe ...

  6. RotateL.help Quark

    RotateL rotate array\ \ RotateL.ar(n, array)\ \ Part of \* HYPERLINK "wslib.html" wslib\ \ Rotates an array of input channels with linear interpolation between channels. \ See also [RotateN] \ \ n - amount of channels to shift\ array - arra ...

  7. plusSignal Quark

    + Array { // these methods are helpful for combining Dissonance with FFT data asFreqMag { |win, sr | var resF = [], resM = [], bw; sr ?? {Server.default.sampleRate / 2}; win ?? {this.size}; bw = sr/win; this.reverseDo{|mag, i| resF = resF.a ...

  8. WeighBag Quark

    ... ement only once (simple equality == ) counting the instances and calculating an array of associated weights. it is used as Element in MarkovSet. ____________________________________________________________________________________________ Ju ...

  9. SortedRand Quark

    // wslib 2012 // // returns a sorted array of random values // *new can also be used in language // trig: (ar and kr versions) trigger new values // n: number of items // minVal: minimum value // maxVal: maximum value // warp: a distributio ...

  10. Matrix Quark

    ... or compatibility reasons. // additional methods dan stowell 2008 Matrix[slot] : Array { *newClear { arg rows=1, cols=1; // return (rows x cols) - zero matrix ^super.fill(rows, { Array.newClear(cols).fill(0) }); } *with { |array| // return m ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow