Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ct(world, loc, 0, 0, mass, mass*4); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ var bary= RedVector2D[0, 0], totalMass= 0; world.objects.do{|o, i| totalMass= totalMass+o.mass; world.objects.do{|oo, j| if(i!=j, { o.addForce(o.gr ...

  2. PLx suite Quark

    ... der PLn and the cutItems arg of PLx list patterns. A word of caution: feeding a looped process with an invalid input has always the potential to lead to hangs. See PsymNilSafe and PLx and live coding with Strings for some remarks on that. P ...

  3. Core_z354_shim Quark

    ... gacy-Patch-Files. Bietet: // • eine saubere, z354-gestützte Wiedergabe (~playF2ALoop / ~stopF2ALoop) // • No-op-Stubs für alle GUI-Knöpfe, die früher von Core_07..Core_99 kamen // (Transforms, Session/Projekt-Panels, Batch, SMR-Export, Trac ...

  4. 003-multiple_wind Quark

    ... (world, loc, vel, 0, mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ cnt= cnt+1; wind= amp*sin(2pi*(cnt/period)); //wind blowing world.objects.do{|o| o.addForce(world.gravity); o.addForce(wind); o.update; world.conta ...

  5. KeyChain Quark

    ... notNil) { res.list_(list) }; if (index.notNil) { res.index_(index) }; }; ^res } loop { repeats = inf } value { |...args| this.next(*args) } next { |...args| var which; index = nextIndex; which = list.wrapAt(index); this.findNext(which.to); ...

  6. 021-superfriction Quark

    ... t*0.4, width, 40); //area with super friction ff= 0.5; //amount of friction //--loop w.draw{ if(fric.containsPoint(obj.loc.asPoint), { if(obj.vel.mag>0 and:{obj.vel.mag>obj.frictionForce(ff).mag}, { obj.addForce(obj.frictionForce(ff)); }, { ...

  7. 030-wave Quark

    ... ject(world, loc, nil, 0, 1.5, 10)); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ if(0.005.coin, {world.gravity= RedVector2D[0, -0.7.rrand(0.7)]; world.gravity.postln}); sys.do{|o, i| o.loc= o.loc+RedVector2D[0, sys.wave.wrapAt(i ...

  8. 048-pendulums-linked Quark

    ... 1, height/(n*2)) //world,loc,vel,acc,mass,size .angularVel_(0.2.rand2); }; //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| if(i>0, { o.loc= world.objects[i-1].pendulumLoc2D; }); }; world.objects.do{|o| ...

  9. 090-livecoding Quark

    ... World3(RedVector2D[width, height], wgrav, 20, 0.25); //dim,grav,maxvel,damp //--loop ~win.draw{ Pen.strokeColor= Color.white; ~world.objects.do{|o| o.addForce(o.world.gravity); o.update; o.world.contain(o); //--render Pen.strokeRect(Rect.ab ...

  10. PhasorTJ-test Quark

    ... bufnum: buf, phase: PhasorTJ.ar(BufDur.ir(buf).reciprocal) * BufFrames.ir(buf), loop: 1, interpolation: 2 ); }.play; x.free SCDoc.indexAllDocuments(true)

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow