Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. asCode Quark

    ... 44.0, 200.0, 32.0, 4.0) ) .value_( 0.5038806200027466 ); */ w.drawHook = { GUI .pen.width_(5).line( 10@10, 390@390 ).stroke }; w.refresh; w.asCode; // includes drawHook functions. But only if they use GUI.pen /* w = GUI.window.new("test-asC ...

  2. Simple_Pendulum Quark

    //Simple_Pendulum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Simple Pendulum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, 0, ...

  3. extVarious-SVGFile Quark

    ... t }; } asSVGTransform { ^SVGTransform( this ); } // direct drawing functions: asPenFunction { ^SVGPath( this ).asPenLinesFunc; } fillPath { this.asPenFunction.value; GUI.pen.fill; } strokePath { this.asPenFunction.value; GUI.pen.stroke; } c ...

  4. gui_example_userview Quark

    //gui example with userview / pen graphics ( var width= 640, height= 320; var numChan= 4; var chanHeight= height/numChan; var win, usr, frameCount= 0; win= Window("gui example userview", Rect(100, 100, width, height)).front; usr= UserView(w ...

  5. 2_inphluxgui Quark

    ... t(166, 2.0, 160, 20.0)); // call this somewhere in skipjack, or when changes happen q.inph.updateGui = { q.ndefs.do { |ndef, i| // compare names of current q.ndefs with gui labels var but = g.inphGui.attachButtons[i]; var key = ndef.key; va ...

  6. XiiSnd Quark

    ... var outbus, inbus, selected; // temp vars var myVol; // var ateFunc; // what happens when predator eats from the prey // var myBuffer, myBufNum, myBufferName, poolnum, biteFlag; // var poolnum, bufferindex, myVol; // var <>selected, sampleN ...

  7. 015-repulsive Quark

    ... addForce(obj.gravityForce(rep).neg); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.green; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; C ...

  8. 022-viscosity Quark

    ... ddForce(obj.viscosityForce(vv)); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.yellow; Pen.fillRect(visc); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close} ...

  9. XixiSampleCircle Quark

    ... move, friction; var posNegX, posNegY; var xAway, yAway; var ateFunc; // what happens when predator eats from the prey var myBuffer, myBufNum, myBufferName, poolnum, biteFlag; var poolnum, bufferindex, myVol; var <>selected, sampleNameField, ...

  10. ScaledUserView Quark

    ... nstead, and thus doesn't scale anything. ( // resize the window and see what happens w = Window ( "ScaledUserView" ).front; b = ScaledUserView ( w, w.view.bounds.insetBy( 10 , 10 ), Rect ( 0 , 0 , 1 , 1 ) ); b.drawFunc = { Pen .line( 0.1 @ ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow