-
ZLPF { *ar { arg in, fc=440, damping=0.707, mul=1, add=0; var b0, b1, b2, a0, a1, a2; var c, cc, twodC; var out; out = in; damping.asArray.do({ arg df; c = (pi * fc/SampleRate.ir).tan.reciprocal; cc = c.squared; twodC = 2 * df * c; b0 = (1 ...
-
... ion Planewave encoder (monophonic). Arguments: theta Azimuth angle, in radians: pi to -pi phi Elevation angle, in radians: pi/2 to -pi/2 Discussion: This is the classic Ambisonic encoding (panning) function. SuperCollider's inbuilt PanB and ...
-
// audio mapping in ProxySpace // todo. expand(numChannels) message p = ProxySpace .push(s.boot); p.fadeTime = 3; // some filters ~f1 = { |a_in=#[0,0], freq=500, dt=0.01| Ringz .ar(a_in, freq, dt) }; ~f2 = { |a_in=#[0,0], dt=0.1| CombL .ar( ...
-
... Rect(0, 0, 100, 40)).background_(Color.white).visible_(false); rotateCounter = -pi; rotFunc = {//calculates coords for rotating cursor line rotateCounter = (rotateCounter + 0.4).wrap(-pi, pi); [([-25, 25] * rotateCounter.sin), ([-25, 25] * ...
-
... > {|freq, end, offset, selector = \ar| SinOsc.perform(selector, freq * 0.5, (1.5pi + (offset * pi))%2pi).range(0, end)}, ]; } *jitterEngine {|name, freq, selector| var engine; // UGen function defined externally // name.isKindOf(AbstractFun ...
-
... flop; reads= DelayC.ar(dry, windowDur, phasors*windowDur); windows= sin(phasors*pi); wet= [Mix((reads*windows)[0]), Mix((reads*windows)[1])]; ReplaceOut.ar(out, XFade2.ar(dry, wet, mix)); }, [0, lag, lag], metadata: ( specs: ( \out: \audiob ...
-
... ions = speakers.collect({|item,i| Spherical(item[0], item[1].linlin(-180, 180, -pi, pi), // item[2].linlin(-180, 180, -pi, pi) ).asCartesian.trunc(0.00000001) }); this.speakerPositions = speakers.collect({|item,i| Spherical(item[0], item[1] ...
-
... e(bounds.center.x @ (bounds.top + bounds.height - 1), bounds.height * 0.20, 0, -pi); GUI.pen.perform(\fill); // scale //Color.black.alpha_(0.2).set; GUI.pen.color = XiiColors.darkgreen; GUI.pen.addAnnularWedge(bounds.center.x @ (bounds.top ...
-
... e(bounds.center.x @ (bounds.top + bounds.height - 1), bounds.height * 0.20, 0, -pi); GUI.pen.perform(\fill); // scale Color.black.alpha_(0.2).set; GUI.pen.addAnnularWedge(bounds.center.x @ (bounds.top + bounds.height - 1), bounds.height * 0 ...
-
... .source = y.sin * 0.2; // set its source now. y.source = { Saw.ar([300, 301], 4*pi) }; // the source can be of various type, one of them would be a number: y.source = 0.0; // post the source y.source; // end them, free their bus number y.cl ...