Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. 003-multiple_wind Quark

    ... wgrav, 5); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, 50].rand; var vel= RedVector2D[3, 3].rand; var mass= 0.5.rrand(4); RedObject(world, loc, vel, 0, mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.d ...

  2. 030-wave Quark

    ... rav, 20, 0.01); //dim,grav,maxvel,damp //--objects // sys= RedWaveSystem(n, {pi.rand}, {|i| i/n*2pi}, {0.75.rand}, 0.1); {|i| var loc= RedVector2D[width/n*i, height/2]; sys.add(RedObject(world, loc, nil, 0, 1.5, 10)); //world,loc,vel,acc,ma ...

  3. freqStream Quark

    ... rn = Instr ( "freqStream.divStutter" ).value([ 56, // root Instr ( "scaleStream.randpenta" ).value, //scale 16 // cycleLength ]); Pbind ( \freq , pattern.trace, \dur ,0.125 ).play; ) ( // load your entire library Instr .loadAll; ) // choose ...

  4. Trafo Quark

    ... rafo .new; // the identity t.vmul( [1, 0, 0]); ( {2000.do{ t = Trafo .new({{1.0.rand}!3}!3, {1.0.rand}!3); t vmul: ({1.0.rand}!3) }}.bench ) t = Trafo .from3dPoints( [0, 0, 0], [pi, 3, 0], [15, 2, 0] ) t.vmul( [1, 0, 0])

  5. ScaledUserViewWindow Quark

    ... nd move points w.clearDrawFuncs; w.fromBounds = Rect(0,0,100,100); p = { Point .rand( 100.0.rand , 100.0.rand ) } ! 10 ; a = nil ; // selected point w.drawFunc = { Pen .color = Color .green( 0.5 ).alpha_( 0.75 ); p.do({ |pt| Pen .addArc( pt ...

  6. XiiSynthDefs Quark

    ... = PlayBuf.ar(1, bufnum, rate, 1.0, pos) * env ; Out.ar(outbus, Pan2.ar(signal, Rand(-0.75, 0.75))); }); /* // One day I'll use Josh's BufGrain SynthDef(\xiiGrain, {arg outbus=0, bufnum, t_trig=0, rate=1, pos=0, dur=0.05, vol=1, envType=0; ...

  7. Random_Arboretum Quark

    //Random_Arboretum //Originally created by Jeffrey Traer Bernstein http://murderandcreate.com/physics/ ( var width= 400, height= 400; var win= Window("Random Arboretum", Rect(100, 100, width, height), false); var usr= UserView(win, Rect(0, ...

  8. mrkov Quark

    ... } }; return.(nil) } }; ~findNext = { |index| var obj = ~keyList.at(index); var randomOffset = ~keyList.size.rand; ~find.(obj, ~keyList, randomOffset) ? index }; ); // a few tests a.getFFT(56, 1, ~fftSize, { |c| defer { c.magnitude.plot } } ...

  9. 041-pendulum2 Quark

    ... 0.02); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector[0.5, 0.5].rand2; RedPendulum(world, loc, vel, 0, 1.rrand(5), 5.rrand(80)) //world,loc,vel,acc,mass,size .theta_(2pi.rand).angularVel_(1 ...

  10. percOrc4 Quark

    ... req, rq); y = Integrator.ar(y, 0.99); y = Mix.fill(qnty, { CombL.ar( y, 0.1, (7.rand + 1) / (8.rand + 1) * 0.001, // Partch tonality diamond about 1000Hz 5 ); }); },[],\audio); Instr([\percOrc4, \monoClav],{arg trig=0.0,qnty=3,freqOffset=30 ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow