-
// A phrase is an array that behaves like a stream, but allows // you to manipulate its data on the fly. // Every phrase has a region defined that determines both what // array data responds to the operation methods and what section of // t ...
-
... = 1, add = 0; var tris, saws, counter, trigger, pointers, warps, warpharm, harmarray, warpwindowsizearray, warpwindowoverlapsarray, warpwindowranarray; trigger = Impulse.kr(windowsize.reciprocal, Array.fill(overlaps, {arg i; (overlaps - i) ...
-
Logger : UGen { *kr { arg inputArray, trig=0.0, bufnum=0, reset=0.0; // Note rearranged args - code expects buffer ref first, and input data last ^this.multiNewList(['control', bufnum, trig, reset] ++ inputArray.asArray) } *categories { ^ # ...
-
... oaded = false; this.readHeader; } readHeader { this.checkMN.if({ header = DoubleArray.fill(9, {le.if({this.getDoubleLE}, {this.getDouble})}); header = header.addFirst(123); #magic, sr, frameSize, winSize, numPartials, numFrames, ampMax, fre ...
-
... velScale=1, levelBias=0, releaseNode, loopNode=0| var val, times, levels; times=Array.new; val=this.value; levels=val[1]; curves=curves ? Array.fill(val[0].size, 0); curves=curves.asArray; (val[0].size-1).do({|i| times=times.add(val[0][i+1] ...
-
... n does nearest-neighbour search on the server side. * The ugen returns a sorted array of the 'num' closest matches, * in the format [index0, distsq0, index1, distsq1, index2, distsq2, ...]. * If you want the co-ordinates back, you can easil ...
-
... \SHLVL; // SHLVL is numeric, at least... key = key.asString.collectAs(_.ascii, Array); ^super.new.rate_(rate).addToSynth.init([key.size, defaultval] ++ key); } init { arg theInputs; // store the inputs as an array inputs = theInputs; } *ca ...
-
... xTime = env.times.sum; // totalDurRec = 1/(maxTime - minTime); // // absTimes = Array.newClear(env.times.size + 1); // absTimes[0] = 0; // for(1, env.times.size, { arg i; // absTimes[i] = absTimes[i-1] + env.times[i-1]; // }); // // numPoin ...
-
... dims=2, traindur=5000, nhood=0.5, gate=1, initweight=1| inputdata = inputdata.asArray; ^this.multiNew('control', bufnum, netsize, numdims, traindur, nhood, gate, initweight, *inputdata) } init { arg ... theInputs; inputs = theInputs; ^this. ...
-
... ); ^in; } *new { arg trig=2, in, label, width=21, reset=0, ana; var rate = in.asArray.collect(_.rate).unbubble; this.multiNewList([rate, trig, in, label, width, reset, ana]); ^in; } *new1 { arg rate, trig, in, label, width=21, reset=0, ana; ...