Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. Convolution Doc

    ... a = 2048; s = Server.local; // kernel buffer g = Buffer.alloc(s, a, 1); ) ( // random impulse response g.set(0, 1.0); 100.do({ |i| g.set(a.rand, 1.0.rand) }); { var input, kernel; input = SoundIn.ar(0); kernel = PlayBuf.ar(1, g.bufnum, Buf ...

  2. Gradient Doc

    ... ( w = Window.new.front; v = CompositeView(w, Rect(50, 50, 300, 300)); c = Color.rand; d = c.vary(0.15); v.background = Gradient(c, d, \v); [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window.new.front; k = Slider2D(w, Rect(50, 50, ...

  3. 009-multiple-3d_synth Doc

    ... t, depth], wgrav, 20, 0.92); //dim,grav,maxvel,damp //--objects { var mass= 5.0.rand; RedObject(world, RedVector3D[width, height, depth].rand, RedVector3D[2, 2, 2].rand2, RedVector3D[2, 2, 2].rand2*10, mass, mass*5); //world,loc,vel,acc,mas ...

  4. Signal Doc

    ... edOfSound = AtkHoa.speedOfSound; ~refRadius = AtkHoa.refRadius; ~theta = (pi/4).rand2; ~phi = (pi/4).rand2; ~radius = 1.0.rrand(2.0); // design coefficients ~hoaOrder = ~order.asHoaOrder; ~angularCoeffs = ~hoaOrder.sph(~theta, ~phi); ~radia ...

  5. Processes Doc

    ... s sound objects that free themselves when they become silent loop { var note = rrand(60, 63); var elev = Prand([-90, -60, 30, 0, 90]).asStream; // Kamikaze is a special case of synth generated by SATIE // it frees itself when its envelope f ...

  6. SelectXFocus Doc

    ... ound the array of inputs (see also: Array: -wrapAt ). ( { var array = { Saw.ar(rrand(1.0, 3.0)) * Saw.ar(rrand(100.0, 3000.0)) } ! 8; SelectXFocus.ar(MouseX.kr(-20, 20), array, 0.3, true) * 0.1 }.play ) ⧉ ✔ Inherited class methods Undocumen ...

  7. TaskProxy Doc

    ... y; ( x.source = { loop { s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, rrand(600, 640)); 0.1.wait; } } ) ( x.source = { var x; x = Pseries(300, 20, 100).loop.asStream; loop { s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, x.n ...

  8. Debounce Doc

    ... { var dt = 0.03; inf.do { 30.do { d.set(1); dt.wait; }; "crackly on ".postln; rrand(1, 10).do { d.set(2.rand.postln); dt.wait; }; 30.do { d.set(0); dt.wait; }; "crackly off ".postln; rrand(1, 10).do { d.set(2.rand.postln); dt.wait; }; }; } ...

  9. TabbedView Doc

    ... ollowEdges_(false); q.views[0].flow({ arg w; 78.do({ arg i; b = Button(w, Rect(rrand(20,300),rrand(20,300), 75, 24)); b.states = [["Start "++i, Color.black, Color.rand], ["Stop "++i, Color.white, Color.red]]; }); }); GUI.slider.new(q.views[ ...

  10. Functions Doc

    ... arg x = 1; .... } [1] "arg" style, default value is an expression: { arg x = 10.rand; ... } [2] "arg" style, default value is a literal but you want to treat it like an expression: { arg x = (2); ... } [2] Pipe style, default value is a lit ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow