Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1703) Code (71) Doc (521) Help (167) Quark (932) Plugin (12) SCDoc ↗ Forum ↗ Google ↗
  1. line Quark

    ... end = f.get( \end ); curve = f.get( \curve ); path.positions = n.collect({ |i| Point( i.lincurve(0,n-1,start.x,end.x,curve.x), i.lincurve(0,n-1,start.y,end.y,curve.y), ); }); }, [ \start, 0@0, \end, 5@5, \curve, 0@0 ] ) .changesT_( false ) ...

  2. TestMathLib Quark

    ... ); this.assert(p[0] == p[1], "pc1() on perfectly correlated data gives a vector pointing along [+1, +1] or [-1, -1]"); // Anticorrelated x = {10.0.sum3rand}.dup(n); y = x.collect(0.0 - _); p = pc1([x, y].flop); this.assert(p[0] == (0.0 - p[ ...

  3. SpatioScope Quark

    ... ownAction; redCol = Color(1, 0.6, 0, ampAlpha); ampViews = locations.collect { |point, i| var left = point.x + 1 * center.x; var top = point.y + 1.05 * center.y; StaticText(parentView, Rect.aboutPoint(left@top, size, size)) .string_((i + 1) ...

  4. extControlSpec Quark

    ... etFrom { |otherSpec| // Note that ownership with grid and warp are weird - they point back to // the owning spec, so these need to be copied and re-setup in this case. this.minval = otherSpec.minval; this.maxval = otherSpec.maxval; this.war ...

  5. SynthiX Quark

    ... }) } update { // if what is 'grid' ins = inlets.asArray.sort({ arg a, b; a.unit.point <= b.unit.point }); outs = outlets.asArray.sort({ arg a, b; a.unit.point <= b.unit.point }); } draw { var b, gr; b = uv.bounds.moveTo(0, 0); gr = Rect(lab ...

  6. Geometry Quark

    ... y21 * x13)) / denom; if ((ub < 0) || (ub > 1), { ^false; }) }); ^(x@y) } projectPoint2Line{arg aPoint; ^(p1+(p2-p1).asRealVector.proj((aPoint-p1).asRealVector2D)); } closestPointOnLine{arg aPoint; ^(p1+(p2-p1).asRealVector.proj((aPoint-p1). ...

  7. x-io-x-osc.desc Quark

    ... asSymbol] }, ioType: \in ) ), elementsDesc: ( // input elements: // 10 floating-point arguments indicating the current readings of the on board sensors. Arguments 1 – 3 gyroscope (°/s) x, y, z; arguments 4 – 6 accelerometer (g), x, y ,z; ar ...

  8. RedMixGUI Quark

    ... .close}); } //--private prContainer { var width, height; position= position ?? {Point(600, 400)}; width= 120; height= 140; if(parent.isNil, { parent= Window(redMix.class.name, Rect(position.x, position.y, width, height), false); win= parent ...

  9. ChordtrisEngine Quark

    ChordtrisEngine { // pointer to the Chordtris instance var chordtris; // Matrix of cells, instance of ChordtrisMatrix var matrix; // Task to update the matrix var updateTask; // the current chord which must be played var currentBrick; // th ...

  10. Space Quark

    ... ium 2: 16-chan ambisonics x/y" ], [ 'bfenc2', "Ambisonic 3D B format encoder xy points - x channels" ], [ 'bfenc1', "Ambisonic 3D B format encoder azi, elev, rho - x channels" ] ]

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow