-
... rV rVdist = (xyzEncDirs * rVu).collect({ |item| // arccos(dot product) item.sum.clip(-1.0, 1.0).acos }); // (test) encoding directions vs rE rEdist = (xyzEncDirs * rEu).collect({ |item| // arccos(dot product) item.sum.clip(-1.0, 1.0).acos } ...
-
... 0, attackMs=0.01, releaseSecs=1, warp=5, transp=0, sampAzi=0, sampSpr=0, amp=1, clipBoostDB = 0, note = #[60, 1, 1] | var env, sig; var noteFq = (transp + note[0]).midicps; // using midi 60 == speed of 1, midi 48 == speed of var gate = abs ...
-
... ial'); Out.ar(out, Pan2.ar( (SinOsc.ar(freq) * EnvGen.ar(window, doneAction:2)).clip2(1), pan ) ) }).add; /***** s.sendMsg('/s_new', 'grainXLine', -1, 0, 0, \freq, 2000, \sustain, 1, \out, 0); *****/ SynthDef('grainXLRev', { arg out = 0, fr ...
-
... on=0; var levels; levels = spline.bilinearInterpolate(divisions,dimension,true).clip(outSpec.minval,outSpec.maxval); ^LocalBuf.newFrom(levels); } }
-
... prGetSource { | sourceNum | if (sourceNum.isInteger) { ^sources.get[(sourceNum.clip(1, sources.get.size)) - 1]; } { ^Error("index must be an Integer").throw; }; } prGetAuxIndex { | auxNum | if (auxNum.isInteger) { ^(auxNum.clip(1, 5) - 1); ...
-
... make encoder rotation endless var step = enc.deviceValue - enc.prevDeviceValue.clip(1, 126); // prepare for mode var enchat = m.elAt(\enchat, i); var enchatIsUp = enchat.isOn.not or: enchat[0].isOn.not; if (enchatIsUp) { // "// normal mode ...
-
... .18 range (same as legacy pipeline) var normA = ((a / maxMag.max(1e-9)) * 0.18).clip(0.0, 0.18); pts.add([t, f, normA, ph]); }; pts }; // Helper: build [nFrames][25] bandEnergy from ATSResidual.bandEnergy buildBandEnergy = { |residual, numF ...
-
... lue), so moves to a given location from the beginning of the file. the value is clipped so that it lies between 0 inclusively and the file length exclusively. length returns the current file size in bytes Examples: // write some string to a ...
-
... rect = OssiaAutomationProxy(parentOssiaNode, "Directivity", Float, [0, 90], 0, 'clip', critical:allCritical); direct.node.unit_(OSSIA_angle.degree).description_("ATK B-Format only"); ^[direct]; } setAction { | parentOssiaNode, source | pare ...
-
... wer executes periodically at the rate specified by execFreq in cps. execFreq is clipped to be between minFreq and maxFreq . First it detects whether the input peak to peak amplitude is above the ampThreshold . If it is not then no pitch est ...