Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... lyRules(11); LSPlant (180@270, 180, argAngle: 90).drawSize_(4).draw(k); ) //Sierpinsky triangle ( a = LSys ( "L" , [ "L" -> "R+L+R" , "R" -> "L-R-L" ]); k = a.applyRules(6); LSPlant (60@400, 30, argAngle: 60).drawSize_(6).draw(k); ) //Islan ...

  2. UScoreEditorGUI_TopBar Quark

    ... ); views[\undo] = SmoothButton( header, (size * 0.8)@size ) .states_( [[ 'arrow_pi' ]] ) .radius_( [1,0,0,1] * (size/2) ) .canFocus_(false) .enabled_(false) .stringColor_( Color.gray( [0.5,0][ UScoreEditor.enableUndo.binaryValue ] ) ) .acti ...

  3. ArduinoQuaternion Quark

    ... ttingHome = true } clearHome { homeQ = nil } prPostYPR { |euler| postf("YAW: %\tPITCH: %\tROLL %\n", *euler.raddeg) } } + Quaternion { // From Varesano: See Sebastian O.H. Madwick report // "An efficient orientation filter for inertial and ...

  4. Geometry Quark

    ... llel{arg aLine; var a=this.directionVector.angle(aLine.directionVector); if((a==pi)||(a==0),{^true},{^false}); } skewLinesNearestPoints{arg aLine; var p1 = this.positionVector; var p2 = aLine.positionVector; var d1 = this.directionVector; v ...

  5. SSWorldView Quark

    ... view // draw sweet spot (on the floor) Pen.addArc(0@0,f*world.sweetSpotSize,0,2pi); Pen.stroke; //ceiling Pen.strokeColor=Color.black; Pen.addRect(Rect.aboutPoint(0@0,world.dim.y/2,world.dim.x/2)); //floor Pen.addRect(Rect.aboutPoint(0@0,f ...

  6. 1_flatcat_NTMI_advanced Quark

    ... replaced with the flatcat serial number # In Terminal, log into the flatcat raspi with e.g. ssh pi@flatcat22.local # pw: fl4tc4t* # if the flatcat does not start with OSC by default: # In Terminal, stop the default robot program: killall u ...

  7. HoaLm Quark

    ... = 0| var l, m, mabs; var res; #l, m = this.lm; mabs = m.abs; // remap phi phi = pi/2 - phi; // evaluate spherical harmonic case( { m < 0 }, { res = 2.sqrt * sphericalHarmonicI(l, mabs, phi, theta) }, // imag { m == 0 }, { res = sphericalHar ...

  8. Interpl Quark

    ... - (dx*k).exp ) / (1.0 - k.exp)} ) },{ ((k == \sine) || (k == \sin)).if({ dx = ((pi * (dx - 0.5) ).sin + 1) * 0.5 // this version slightly more efficient // dx = (0.5pi * dx).sin.squared }); ((k == \welch) || (k == \wel)).if({ dx = ( sign.is ...

  9. MoscaGUI Quark

    ... printText; var maxUndo, undoAr, storeGraphicUndo, getGraphicUndo; classvar halfPi; *initClass { Class.initClassTree(MoscaUtils); halfPi = MoscaUtils.halfPi; } *new { | aMosca, size, palette, guiInt | var p; switch (palette, \ossia, { p = O ...

  10. KDTree Quark

    ... hods are not faster :( ): // I wonder if there are methods that are genuinely typically faster than: ^this.collect({|n| n -> n.nearestToNode(nil, bestDist, incExact)}); } sibling { if(parent.isNil, {^nil}); // May be nil, even if parent exi ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow