-
... eat 3, offset 2 b = a.asStream; 13.do({ b.next.postln; }); ) ⧉ ✔ You can pass a function for the repeats variable that gets evaluated when the stream is created. ( var a, b; a = Pseq.new(#[1, 2], { rrand(1, 3) }); // repeat 1,2, or 3 times ...
-
... methods Instance Methods Inherited instance methods Examples ar /* FFT analysis functions NOTE: FFT returns linear frequency */ ( ~calcMag = { arg kernel; var fftResponse, fftMag; // FFT analysis here! fftResponse = fft( kernel.as(Signal), ...
-
... ch| patchesPlayed = patchesPlayed.add(patch); } queueBundle { |bundle| bundle.isFunction.if({ bundle = server.makeBundle(false, bundle); }); // send immediately if channel is ready; otherwise queue it this.ready.if({ server.listSendBundle(n ...
-
... calhost" [1, 2, 3, 4].scramble.say(lang: \en); { SinOsc.ar }.say("Anna"); // "a Function" { SinOsc.ar }.cs.say("Anna"); // "{ SinOsc.ar }" Dictionary[\a -> 1, \b -> 2].say(lang: \en); ⧉ ✔ 2. use events and patterns to create strings to be s ...
-
... lPhase, principalPhaseRe, groupDelayRe; var c, continuousPhase; var conform; // function to conform angle to reference conform = { |angle, angleRef| var angleDiff = angle - angleRef; var angleExc = angleDiff.sin.atan2(angleDiff.cos); angle ...
-
// wslib 2006 // // bank of iconographic Pen-functions DrawIcon { classvar <drawFuncs; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^drawFuncs[ name ].value( rect, *more ); // returns pen function } *symbolArgs { |name, rect ...
-
... random number generators that produce specific distributions, and also chaotic functions. Pseries (start, step, length) arithmetic series, e.g., 1, 2, 3, 4, 5 Pgeom (start, grow, length) geometric series, e.g., 1, 2, 4, 8, 16 Pwhite (lo, h ...
-
... rlap-add by running through a pair of indices, shifting weights with the window function nSteps = phase.div(timescaleStep) - [1.0, 0.0]; index = nSteps * (timescaleStep / timescale - timescaleStep) + phase; windowIndex = phase - (nSteps * t ...
-
... if a MIDI message is on a channel not defined, it will be passed // to whatever function was in MIDIIn before initialization initialized.not.if({ MIDIClient.initialized.not.if({ MIDIClient.init; // open the ports }); // in Linux, externalSo ...
-
... nearly silent -- proving that chainB is in a different buffer, even though the function does not explicitly create it. ( x = { var inA, chainA, chainB; inA = LFClipNoise.ar(100); chainA = FFT(LocalBuf(2048, 1), inA); chainB = PV_PhaseShift ...