Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... l,acc,mass,size .angularVel_(2.0.linrand); ypos= ypos+(size*2.25); obj; }); //--loop w.draw{ Pen.fillColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.update; world.contain(o); //--render Pen.fillRect(Rect.aboutPoint(o.pendulumLoc ...

  2. RedDiskInPlayer Quark

    ... /folder selection now remember last location //progressbar now wrap around when loop is on //--changes171223: //rewrite to work with Qt and sc3.9 //--changes090829: //drag and drop from finder using a dragsink //--changes090613: //no longer ...

  3. 001-single Quark

    ... bject(world, loc, vel, acc, 1, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| //iterate all objects in this world o.addForce(o.world.gravity); //add gravity o.update; //objec ...

  4. 042-pendulum3 Quark

    ... ld,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(0.5.rand); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; worl ...

  5. README Quark

    ... or can oscillate. The function starts at 0, goes to 1, and returns to 0 on each loop or trigger. There are two versions provided. For a more efficient algorithm, use the Faust implementation - Maths. The SC version is Maths2. Both are compl ...

  6. 040-pendulum Quark

    ... 50) //world,loc,vel,acc,mass,size .theta_(-1).angularVel_(-0.5); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; //world ...

  7. HISTORY Quark

    ... 6 IM Used` * Add `306 (Unused)` * Add `415 Unable For Legal Reasons` * Add `508 Loop Detected` 1.1.1 / 2014-09-24 ================== * Add missing 308 to `codes.json` 1.1.0 / 2014-09-21 ================== * Add `codes.json` for universal su ...

  8. SCPyduino Quark

    ... on LED p.digital[13].write(0); //turn off LED //Make the LED blink ( a = fork{ loop{ p.digital[13].write(1); 1.wait; p.digital[13].write(0); 1.wait; } }; ) a.stop; // stop blinking // - Reading a digital pin - // activate port 0 (PORTA) p. ...

  9. SWPlotterMonitor.help Quark

    ... le use, plotting some fake data: ( // some fake data e = 0; f = 0; r = Routine{ loop { e = 0.0.rrand(1); f = 0.0.rrand(1).cos; 0.5.wait; } }.play; // look at the data m = SWPlotterMonitor.new( { //data to plot [ [e, f], // view the two stre ...

  10. p_map_polar Quark

    ... \p_map_polar, { |unit, rho = 0, theta = 0, center = (0@0), radius = (10@10)| { loop { (Polar(rho.next, theta.next).asPoint.asArray * radius.next.asArray + center.next.asArray).asPoint.yield }; }.r }).category_( 'pattern_point' ) .valueIsMa ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow