Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (692) Code (80) Doc (247) Help (48) Quark (306) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. CUBE Doc

    ... 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 ...

  2. HOATransRotateAz Doc

    ... 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 ...

  3. oenci by vividsnow (vividsnow) Code

    ... 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 ...

  4. New-Metal Mistress Time by tim-walters (Tim Walters) Code

    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) ...

  5. FoaDirect Doc

    ... 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. ...

  6. WaveNumber Quark

    ... (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 ...

  7. Rotate2 Doc

    ... * 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 ...

  8. Monophonic SynthDef Sequence by moncrey (moncrey) Code

    ... 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); ...

  9. StereoImagingTransformsIllustrated Doc

    ... // 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 ...

  10. SyncSaw madness by lfsaw (LFSaw) Code

    ... 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 ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow