-
... totalweight.rand; runningsum = 0; while { index = (index + 1) % currentWeights.size; runningsum = runningsum + currentWeights[index]; runningsum < rnd }; }); ^inval } } Pwshuf : ListPattern { var <>weights, <>mask; *new { |list, weights, r ...
-
... n from 3.9 onwards, if you have the choice. NOTE: Depending on the multichannel sizes it might be necessary to increase server resources, i.e. the number of interconnect buffers (e.g. s.options.numWireBufs = 256; s.reboot). See Ex.8 from DX ...
-
... value of the interval. <>step The step value of the interval. Instance Methods size Return the number of items in the interval. Interval (10, 30, 4).size.postln; at(index) Return the indexed item in the interval. Interval (10, 30, 4).at(3) ...
-
... pe, src, chan, num, value ); }); learnFuncs.remove( completed ); if( learnFuncs.size == 0 ) { UMIDIDict.removeDependant( this ); }; lastUpdate = [ type, src, chan, num ]; }; } learn { |action| var learnFunc; learnFunc = { |inType, src, chan ...
-
... View { var <plot, <background; var <>highlightColor, <highlightItem, <>highlightSize, <>isHighlight, <>drawAxis, <>drawValues; var <>xAxisName, <>yAxisName; var <symbolSize, <>symbolColor, <>drawMethod = \lineTo; var adjustedData, specX, sp ...
-
... functions on numeric approximations with Fb1_ODE miSC_fb1_perform { |thing, in, size, outSize| var valueArray, addArray, composed; ^thing.isNil.if { this }{ valueArray = this[0..size-1]; addArray = this[size..outSize-1]; composed = thing.is ...
-
... ndReadingMachine : Stream { var <table, <stack, <prev, <prediction; var <patternSize, <strategyClass; var <>verbose = false; *new { |patternSize = (3), strategyClass| ^super.new.init(patternSize, strategyClass) } init { |size, argStrategyCl ...
-
... = times.last + 10; // needed for NRT // data integrity check if (~degrees.size != ~vels.size || ~degrees.size != ~durs.size) { Error("Melody data is inconsistent.").throw; }; } ) // turn melody data into piece ( var scale, root ...
-
TPV Tracking Phase Vocoder resynthesis = TPV.ar(chain, windowsize=1024, hopsize=512, maxpeaks=80, currentpeaks, freqmult=1.0, tolerance=4, noisefloor= 0.01, mul=1.0, add=0.0) Implementation of the McAulay and Quatieri 1986 sinusoidal model, ...
-
... medianPos; depth = dep; parent = par; uniqueid = uid; axis = depth % (array[0].size - if(lastIsLabel, 1, 0)); // We want to find the median index, but if even-sized data we want to // make sure we find a point, so we don't use the average- ...