Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1702) Code (152) Doc (537) Help (191) Quark (806) Plugin (16) SCDoc ↗ Forum ↗ Google ↗
  1. event-record-and-playback Quark

    ... back Pdef(\x, Pseq(~recording)).play; Pdef(\x, Pseq(~recording, inf)).play; // looped // mess with it Pdef(\x, Pdict(~recording, Pseq([0, 4, 5] + 100, inf) % ~recording.size)).play; Pdef(\x, Pdict(~recording, Pseq((0..50) + 7, inf) % ~reco ...

  2. Phrand Quark

    ... e.rand; while { history.includes( index ) && { count < 1000 }; } // prevent inf loop { index = size.rand; count = count + 1 }; item = list.at(index); history = ([ index ] ++ history)[..(histSizeStr.next(inval))-1]; inval = item.embedInStrea ...

  3. behringer-x-touch-compact.desc Quark

    ... el: \fwd, midiNum: [50,105].at(lyr), style: ( row: 7, column: 10 ) ) ), ( key: \loop, shared: ( label: \loop, midiNum: [51,106].at(lyr), style: ( row: 8, column: 9 ) ) ), ( key: \rec, shared: ( label: \rec, midiNum: [52, 107].at(lyr), style ...

  4. p_choose Quark

    ... rr, nn; thisThread.randSeed = seed.next.asControlInput; arr = (..n-1).scramble; loop { index = arr.removeAt( histSize.next.asInteger rrand: (n-1).asInteger ); arr = arr.addFirst( index ); vals.at( index ).yield; }; }.r }, addToAll: false ) ...

  5. 220-lorenz_attractor Quark

    ... s*(vec[1]-vec[0]), vec[0]*(r-vec[2])-vec[1], vec[0]*vec[1]-(b*vec[2]) ] }; //--loop w.draw{ obj.vel= lorenz.value(obj.loc, ~sigma, ~rho, ~beta); obj.update; //--render Pen.fillColor= Color.grey((obj.loc[2]/(depth*0.5)).clip(0, 1)); Pen.fil ...

  6. Paccumbounce Quark

    ... Paccumbounce (-1.0, 1.0, Pwhite (-0.05, 0.1, inf ), inf ).asStream; r = fork { loop { p.next.postln; 0.1.wait } }; r.stop; p.reset; p.nextN(200).plot;

  7. AutoBackup Quark

    ... quit. This Class saved me a *lot* of work, especially with those nasty infinite loops one sometimes gets when coding. It is wise to put a line "AutoBackup.start" in your startup.rtf file. Backups are saved as .sc files, named after the titl ...

  8. 053-boids_1d Quark

    ... ,mass,size att= RedHiddenObject(world, RedVector[0, 0]); //hidden attractor //--loop w.draw{ att.loc= w.mouse; Pen.fillColor= Color.grey(1, 0.5); Pen.strokeColor= Color.white; world.objects.do{|o, i| var xy; var trg= o.addForceWander1D; o.a ...

  9. Paccumbounce Quark

    ... Paccumbounce (-1.0, 1.0, Pwhite (-0.05, 0.1, inf ), inf ).asStream; r = fork { loop { p.next.postln; 0.1.wait } }; r.stop; p.reset; p.nextN(200).plot;

  10. 008-multiple-3d Quark

    ... r3D[2, 2, 2].rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow