Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 049-pendulum-double Quark

    //double pendulum //https://www.myphysicslab.com/pendulum/double-pendulum-en.html ( var width= 300, height= 300, w, wgrav, world, ploc, angularAccel1, angularAccel2; //--world w= RedWindow("double pendulum", Rect(128, 64, width, height)).fr ...

  2. XiiAutoloop Quark

    ... ************* stereo or mono. this should be set from ixiQuarks main window on open buffNum = 8; buffers = Array.fill(buffNum, {0}); // buffers buffLengths = Array.fill(buffNum, {1}); frozenBuffers = Array.fill(buffNum, {0}); skipLengths = ...

  3. nUFOInfo Quark

    ... iew = nUFOView; nUFOView.drawFunc_({ |uv| var bounds = uv.bounds.extent.asRect; Pen.addRect(bounds).color_(Color.white).stroke; Pen.addRect(bounds.copy.width_(bounds.width * (NTMI.nUFO.bat.percent ? 0 * 0.01))); Pen.color_(Color.green(0.75, ...

  4. RoundedRect Quark

    ... radius ); } asRect { ^Rect( this.left, this.top, this.width, this.height ); } asPenFunction { ^{ Pen.roundedRect( this.asRect, radius ); } } stroke { |penClass| penClass = penClass ?? { GUI.pen }; this.asPenFunction( penClass ).value; penCl ...

  5. Participation.test Quark

    ... endToAll( '/endTrack' , participation.forum.myName);\ \);\ \ w.drawHook_\\ GUI .pen.use \ \ GUI .pen.width = 1;\ GUI .pen.beginPath;\ \ tmppoints.do\ |points| \ points.do \ |p, i| \ if(i == 0)\\ GUI .pen.moveTo(p);\ \\\ GUI .pen.lineTo(p);\ ...

  6. 091-livecoding-worlds Quark

    ... nder2D; }); o.addForce(~world.gravity); o.update; ~world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/~n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; ~win.play; CmdPeriod.doOnce({~win.close}); ) //--livecoding swapping wor ...

  7. WFSPathBox Quark

    ... ^wfsPath } value_ { |newWFSPath| if( wfsPath != newWFSPath ) { wfsPath.removeDependant( this ); wfsPath = newWFSPath; wfsPath.addDependant( this ); if( editor.notNil && { editor.isClosed.not }) { editor.object = wfsPath; }; }; this.update; ...

  8. Bouncy_Balls Quark

    ... leBoundaryCollisions.value(b); handleBoundaryCollisions.value(c); physics.tick; Pen.color= Color.black; Pen.strokeOval(Rect.aboutPoint(Point(mouse.position.x, mouse.position.y), 17.5, 17.5)); Pen.fillOval(Rect.aboutPoint(Point(b.position.x, ...

  9. EnvScaleView Quark

    ... ettingsView,numGridLinesPerUnit,vhorzGridDist,selGridLineCoord,loopStartNode,loopEndNode,timeIncr,timeStep,uI,breakPointCoords,curvePointCoords,<>selectedBreakPoint,breakPointTime,envGrid,envGridHeight,<action; classvar unitStep; *initClass ...

  10. GameLoopVisualiser Quark

    ... }.defer}); } close { if(mainView.notNil, {mainView.close}, {"There is no view open for GameLoopVisualiser".error}); } clear{ if(mainView.notNil, {mainView.close}); instance = nil; } /* Private */ calculateMeterUnit{ sceneWidth = entManager ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow