Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... that order. All of the following are legal calls to that method. SinOsc.ar(800, pi, 0.2, 0); // all normal arguments: freq, phase, mul, add // freq = 800, mul = 0.2, others get default values. SinOsc.ar(800, mul: 0.2); // freq = 800, phase ...

  2. FilterCascades Quark

    ... 0, a1, a2, b1, b2; var l, al, bl2, rcp; // Thomas Musils formula: l = 1.0 / tan(pi * freq / sr); al = rq * l; bl2 = freqScale * l * l + 1.0; rcp = 1.0 / (al + bl2); a0 = rcp; a1 = rcp * 2.0; a2 = a0; b1 = rcp * 2.0 * (bl2 - 2.0); b2 = rcp * ...

  3. syntax_colors Doc

    ... SomeClass.new(\abc, 123, "xyz") { |one, two, three=42.7| var myVariable, test = pi*5, bool = true; if ((two & one) < 3) { // A comment... "hello".postln; (abc: $x, def: \y, ghi: nil); } { [~bar, zoo, thisProcess.platform]; }; }; Routine { i ...

  4. extArray Quark

    ... ------------- + Array { *regularPolygon { |size = 3, orientation = 0.0, wrap = 2pi| var theta; // orientation: keyword test if(orientation.isNumber.not, { orientation = switch(orientation, \vertex, { 0.0 }, \side, { pi / size }, \point, { 0 ...

  5. SinGrainBBF Doc

    ... a stored signal to be used for the envelope of the grain. azimuth In radians, -pi to pi. elevation In radians, -0.5pi, to +0.5pi. rho The speaker radius; 1 places shound at the radius, <1 within the radius, >1 is outside the radius. Beyond ...

  6. trainFromFile Plugin

    ... e 2 D data with a sinusoidal relationship: s.boot; ~toydata = { var num; num = 2pi.rand; [num - pi / pi, num.sin]}.dup(10000); // Let's plot the data - looks just like noise? ~toydata.flatten.plot(numChannels: 2); // The following will plot ...

  7. Polar Help

    ... us by some value. rotate(aNumber) Rotate the angle by some value. neg Rotate by pi. Conversion magnitude Answer the radius. angle Answer the angle in radians phase Answer the angle in radians real Answer the real part. imag Answer the imagi ...

  8. SCTransportWindow Quark

    ... ; }; backColor.set; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.fill; Color.black.alpha_(0.9).set; Pen.width = 3; Pen.addArc( view.bounds.center, view.bounds.height / 2, 0, 2pi); Pen.stroke; Color.white.alpha_(0.5). ...

  9. sine Quark

    ... , periods, range, close; periods = f.get( \periods ); phase = f.get( \phase ) * pi; range = f.get( \range ); close = f.get( \close ).not.binaryValue; n.collect({ |i| (i.linlin(0,n-close,0,2pi * periods) + phase).sin.linlin(-1,1,*range); }); ...

  10. AmbXEnc Quark

    ... UGen('==',de,0).if(delta,de); ^[da,de]; } *limitElevation { |e,de| // e+de/2 <= pi/2 AND: e-de/2 >= -pi/2 e = min(e,(pi/2)-(de/2)); e = max(e,(-pi/2)+(de/2)); ^e; } *preserveArea { |preserveArea,da,e,de| /* if preserve_area : | da = da / co ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow