Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1702) Code (152) Doc (537) Help (191) Quark (806) Plugin (16) SCDoc ↗ Forum ↗ Google ↗
  1. WaveLoss Doc

    ... ; ) // A stereo example, evolves over a couple of minutes - specify a breakbeat loop sample below, sounds good b = Buffer.read(s,"sounds/amenfast.wav"); // remember to free the buffer later. ( x = { var sig, mode, woo; sig = PlayBuf.ar(1, b ...

  2. 080-function_plot Doc

    ... width*scale, height*scale)).front; widthCartPlane= 16; heightCartPlane= 16; //--loop w.draw{ cnt= cnt+0.05%(width*scale); dx= widthCartPlane/(width*scale); dy= heightCartPlane/(height*scale); x= widthCartPlane.neg/2; (width*scale).do{|i| y= ...

  3. 015-repulsive Doc

    ... ld, RedVector2D[130, 30], RedVector2D[1.5, 1], RedVector2D[0, 0], 1.5, 10); //--loop w.draw{ rep.loc= w.mouse; obj.addForce(obj.gravityForce(rep).neg); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.green; Pen.strokeRect( ...

  4. 080-function_plot Quark

    ... width*scale, height*scale)).front; widthCartPlane= 16; heightCartPlane= 16; //--loop w.draw{ cnt= cnt+0.05%(width*scale); dx= widthCartPlane/(width*scale); dy= heightCartPlane/(height*scale); x= widthCartPlane.neg/2; (width*scale).do{|i| y= ...

  5. 015-repulsive Quark

    ... ld, RedVector2D[130, 30], RedVector2D[1.5, 1], RedVector2D[0, 0], 1.5, 10); //--loop w.draw{ rep.loc= w.mouse; obj.addForce(obj.gravityForce(rep).neg); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.green; Pen.strokeRect( ...

  6. CondVar Doc

    ... continue waiting if it is not satisfied. This usually takes the form of a while loop of the form: while { /* condition is false */ } { /* wait on condition */ } . Have CondVar check your condition for you: call wait or waitFor with a predic ...

  7. ArduinoSMS Quark

    ... Stream, state; parse { msg = Array[]; msgArgStream = CollStream(); state = nil; loop { this.parseByte(port.read) }; } finishArg { var msgArg = msgArgStream.contents; msgArgStream.reset; if (msgArg.notEmpty) { if (msgArg.first.isDecDigit) { ...

  8. Multithreading Quark

    ... le CPU cores. 50.do({ reverb <<+ AlgaNode(\sines); }); //Print CPU usage fork { loop { ("CPU: " ++ s.avgCPU.asStringPrec(4) ++ " %").postln; 1.wait; } } } ) //Boot Alga with the supernova server //Alga will automatically spread the load acr ...

  9. 022-viscosity Doc

    ... ght*0.4, width, 40); //area with viscosity vv= -0.13; //amount of viscosity //--loop w.draw{ if(visc.containsPoint(obj.loc.asPoint), { obj.addForce(obj.viscosityForce(vv)); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color ...

  10. Pn Help

    ... 0, env)) }).add; ) ( var a; a = Pn ( Pshuf ([1, 2, 2, 3, 3, 3], 4)).asStream; { loop { Synth ( \help_sinegrain , [ \freq , a.next * 600 + 300]); 0.2.wait; } }.fork; )

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow