-
... r(-1,1), MouseY.kr(1, -1)] }; ~azi = { atan2(~mouse.kr(1,1), ~mouse.kr(1,0)) - (pi/2)}; ~elev = { var plane, z; plane = hypot(~mouse.kr(1,0), ~mouse.kr(1,1)).min(1); z = (1 - plane.squared).sqrt; pi/2 - atan2(plane, z); }; ) ~enc = { PanAmb ...
-
... Ambisonics order 1-5. in b-format as channel array. az azimut angle in degree (-pi to pi). Returns: b-format as channel array (4,9,16,25,36 channels depending on the order argument). Inherited class methods Instance Methods Inherited instan ...
-
... mpo.reciprocal * Drand((1,4..48), inf), 0, Drand((0..10).linlin(0,10,0,2*pi),inf) )) // not sure ).range(-0.5,5.5), [ // perc BrownNoise.ar(LFNoise2.kr(0.1.exprand(1)).range(0.3,0.75)), WhiteNoise.ar(LFNo ...
-
A free-running oscillator piece. I was hoping the three elements had enough code in common that I could make an elegant generator for them, but not so. ( var duration = 60 * 5; var freqDrift = { |freq| LFDNoise3.ar(0.2, 0.1, freq.cpsmidi) ...
-
... mat signal, an array: [w, x, y, z] angle The distortion angle, in radians. 0 to pi/2 theta Azimuth for the normal to the plane, in radians. phi Elevation for the normal to the plane, in radians. mul Output will be multiplied by this value. ...
-
... (in hz). *newFreq { |freq, speedOfSound = (AtkHoa.speedOfSound)| ^this.new(2 * pi * freq / speedOfSound); } // Set wavenumber from normalised frequency. *newWn { |wn, sampleRate, speedOfSound = (AtkHoa.speedOfSound)| ^this.new(pi * wn * sa ...
-
... * yin; ⧉ ✔ yout = cos(angle) * yin - sin(angle) * xin; ⧉ ✔ where angle = pos * pi, so that -1 becomes -pi and +1 becomes +pi. This allows you to use an LFSaw to do continuous rotation around a circle. Class Methods Rotate2. ar ( x , y , po ...
-
... doneAction:2); synth = Mix.new([ LFSaw.ar(Lag.kr([freq*2,freq],lag),[0,pi],amp), LFTri.ar(Lag.kr([freq,freq*2],lag),[pi,0],amp) ]); synth = Pan2.ar(synth) * ampEnv; synth = RLPF.ar(synth,filtEnv,fq); Out.ar(out,synth); ...
-
... // Stereo input in = [ inL * env1, inR * env2 ]; lfo = LFSaw.kr(0.1).range(0, 2pi); out = BlumRotate.ar( in: in, angle: lfo ); // compare in/out signals // in out }.play ) ⧉ ✔ Compression towards an axis: Width and Balance The width transf ...
-
... freq2 * SinOsc.ar(Line.kr(1, vibrato[i], 20) * vibRatio[i], Rand(0, 0.8)).range(pi, pi * 0.1)) * rrand(0.05, 0.1) }; src = Splay.ar(src); }).play ) Ndef(\fun).fadeTime = 20; Ndef(\fun).rebuild ( Ndef(\fun).setn( \lag ...