Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. Synchronous control bus visualizer using the shared memory interface by rukano (rukano) Code

    ... u.clearOnRefresh = false; u.drawFunc = { var width = u.bounds.width; // Pen.fontColor Pen.stringAtPoint("Click on a zone to pause or resume the oscillator", Point(0,0)); Pen.fillColor = Color(1, 1, 1, 0.1); Pen.fillRect(u.b ...

  2. extSCImage-drawBackground Quark

    ... ); } fill { |rect, tileMode=1, alpha=1.0, fromRect, operation = 'sourceOver'| ^Pen.use{ Pen.clip; this.drawBackground( rect, tileMode, alpha, fromRect, operation ); }; } penFill { |rect, alpha=1.0, fromRect, tileMode=1, operation = 'source ...

  3. 049-pendulum-double Doc

    //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 ...

  4. 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 ...

  5. 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 = ...

  6. 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, ...

  7. 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 ...

  8. KickandBass by scottintokyo (Scott L Simon) Code

    ... 2){TempoClock.default.tempo = 60/60;}; }); u.drawFunc = { Pen.fillColor = Color.red; Pen.color = Color.white; pt.x=mx; pt.y=my; 100.do{|i| Pen.moveTo(pt); pt.x = sin(u.frame*0.1. ...

  9. RedKMeans Doc

    ... w.drawFunc= { var colors= {|i| Color.hsv(i/a.k, 1, 1)}.dup(a.k); b.do{|vec, i| Pen.fillColor= colors[a.classifications[i]]; Pen.fillRect(Rect.aboutRedVector2D(vec, 1)); }; Pen.fillColor= Color.white; a.centroids.do{|cent, i| Pen.strokeColo ...

  10. 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);\ ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow