Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... s; // sum the position velSum = velSum + thisBoid.vel; // sum the velocities // loop again boidList.do{|thatBoid, j| var dist; // don't check for boids that are the exact same object if ((thisBoid === thatBoid).not) { // get the distances t ...

  2. ReadWriteBufSndFile Quark

    ... matGPath.quote, numFrames, numChannels, sampleRate, startFrame, endFrame, rate, loop ] << ")" << if( this.write != true ) { ".write_(%)".format( this.write ) } { "" } << if( this.channel != 0 ) { ".channel_(%)".format( this.channel ) } { "" ...

  3. GenomePattern Quark

    ... ream { ^Routine { var inStream, codon, mode = \skip; inStream = super.asStream; loop { codon = inStream.next; case { codon == startcodon and: { mode == \skip } } { mode = \write } { codon == stopcodon and: { mode == \write } } { mode = \ski ...

  4. TestMultithreading2 Quark

    ... 80), fx: ( def: \tanh, dist: Pseq([1, 2, 4, 6],inf) ) )).play(chans: 2); fork { loop { s.avgCPU.postln; 1.wait; } }; }, algaServerOptions: AlgaServerOptions(blockSize:256, supernova: true) //algaServerOptions: AlgaServerOptions(blockSize:25 ...

  5. 035-wave-phase Quark

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

  6. p_envir_get Quark

    ... { var kkey, val, spec, fromSpec, ii = 0; spec = unit.spec ?? { [0,1].asSpec; }; loop { kkey = key.next.asSymbol; if( kkey.notNil ) { val = currentEnvironment[ kkey ] ? (spec.default); fromSpec = currentEnvironment[ \u_specs ] !? _[ kkey ] ? ...

  7. HrSimpleModulator Quark

    ... llRoutine.stop; 0.1.wait; pollRoutine.reset; } }); }); pollRoutine = Routine ({ loop { prOutBus.get({|val| { modControl.modulateWithValue(postOpFunc.value(val)); }.defer; }); 0.04.wait; } }); fork { SynthDef("hrSimpleMod"++uniqueID, { arg i ...

  8. 177-springs_double Quark

    ... ing(obj, trg, 0.2, 0.97, 120); spr2 = RedSpring(obj2, trg, 0.7, 0.92, 100); //--loop w.draw{ if(mp!=w.mouse, { //just to keep target in middle if no mouse input trg.loc= w.mouse; }); spr1.update2; //here interconnect first white dot with re ...

  9. default-synths-extra Quark

    ... , freq, sustain, accelerate, detune=0, voice=0, rate=1, speed=1| var env, trig, loop; freq = (freq * DirtFreqScale.kr(speed, accelerate, sustain))/2; env = EnvGen.ar(Env.linen(0.1, 0.8, 0.1), timeScale:sustain, doneAction:2); trig = Impulse ...

  10. Boids3D Quark

    ... s; // sum the position velSum = velSum + thisBoid.vel; // sum the velocities // loop again boidList.do{|thatBoid, j| var dist; // don't check for boids that are the exact same object if ((thisBoid === thatBoid).not) { // get the distances t ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow