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

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

  6. 011-attraction2 Doc

    ... , RedVector2D[1, 1], mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ world.objects.do{|o, i| world.objects.do{|oo, j| if(i!=j, { o.addForce(o.gravityForce(oo)); if(o.loc.distance(oo.loc)<(o.size*2), { o.addForce(o.gr ...

  7. Concat Doc

    ... input; control= SoundIn.ar; input=PlayBuf.ar(1,bufnum,BufRateScale.kr(bufnum), loop:1); concat= Concat.ar(control,input,1.0,1.0,1.0,matchlength,freeze,0.0,1.0,0.0,0.0); Out.ar(0,Pan2.ar(concat,0.0))}).add; ) a=Synth(\concat1,[\bufnum, b.bu ...

  8. SplineOsc Doc

    ... Gens > Generators'>Generators | Splines SplineOsc Extension Plays a spline in a loop with X as time, ignoring any time reversals Location: NOT INSTALLED! See also: SplineGen Description Not functioning as expected. Hmmmmmmm. ( y = BSpline([ ...

  9. 081-function_plot_image Doc

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

  10. 047-pendulum_3d Doc

    ... nil, nil, 1, 100) //world,loc,vel,acc,mass,size .theta_(0).angularVel_(1); //--loop w.draw{ Pen.color= Color.black; Pen.width= 1; obj.addForceAngular3D(world.gravity); obj.update; a= obj; //--render ploc= Rect.aboutRedVector3D(obj.pendulum ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow