-
+Function{ // time in ms to evaluate function num times benchmark{ arg num=1; var time1, time2, total; total = 0; num.do({ arg i; time1 = Main.elapsedTime; this.value; time2 = Main.elapsedTime; total = total + time2 - time1; }); ^(total*100 ...
-
... ] most recent slope measurement //[3] average slope calculation //[4] detection function //[5] peakpick function init { arg ... theInputs; inputs = theInputs; ^this.initOutputs(5, rate); } } */ AttackSlope : MultiOutUGen { *kr { arg input,w ...
-
... 0, mul = 1.0, add = 0.0) WalshHadamard transform to a basis of square wave like functions rather than the more conventional sine waves of Fourier analysis. The advantage is that the transform is really efficient (no need for trignometic fun ...
-
... w energy levels are encountered, and thus prevents large peaks in the detection function at offset times." Feel free to fiddle with it. This UGen is used in one of the modes of the onset detector [ OnsetsDS ]. Example s.boot; // Load an aud ...
-
... th the threshold settings etc). The type argument chooses which onset detection function is used. The following choices are available: * \power - the default, this is generally good and also very efficient * \complex - performs very well in ...
-
... do({ arg i; returnBools[i] = returnProbs[i % returnProbs.size].coin; }); } // A function used for doing operations on current region regionFunc{ arg func ... sourceArrays; var temp; temp = Array.newClear(regionLength); sourceArrays.do({ arg ...
-
... ase contact Tony Hardie-Bick <tony@entitysynth.net> For questions regarding the function of DFM1 within SuperCollider contact Jonny Stutters <jstutters@jeremah.co.uk>
-
s.quit s.boot // Compare various simple nonlinear functions (clip, wrap..) and // their oversampled versions. // Sweep the input sinewave with the mouse and listen for the aliasing { Clipper4.ar(SinOsc.ar(MouseX.kr(200, 5000), 0, 2), -0.2, ...
-
... ain, trackbuf, relaxtime, floor, smear)}); // Convert to k-rate onset detection function odf = type.switch( \complex, { FFTComplexDev.kr(chain, 0) }, \rcomplex, { FFTComplexDev.kr(chain, 1) }, \phase, { FFTPhaseDev.kr(chain, 0, 0.4) }, \wph ...
-
... arg shape=1; ^( (1.0.rand ** (-1/shape))*this ) } /* Poisson Distribution This function models the occurance rate of rare events. This is a discrete distribution that returns positive integer values. The distribution of values is unbounded ...