-
... .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 ...
-
... 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 ...
-
... 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 ...
-
... // 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 ...
-
... 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 ...
-
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 ...
-
+ 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 ...
-
... ement only once (simple equality == ) counting the instances and calculating an array of associated weights. it is used as Element in MarkovSet. ____________________________________________________________________________________________ Ju ...
-
// 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 ...
-
... 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 ...