Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... n.do{ RedOscillator(world, nil, nil, nil, 0, 10) .coupling_(0.01/n) .freq_(0.05.rand+0.01) .phase_(2pi.rand) .amp_(0.85) }; //--loop w.draw{ world.objects.do{|o| world.objects.do{|p| if(p!=o, { o.couple(p); }); }; }; world.objects.do{|o, i| ...

  2. TestArray Quark

    ... y { // only apply where it works #class, op = pair; val1 = class.fill(10, { 1.0.rand }); val2 = val1; val1.perform(*op); this.assert(val1 == val2, "operation '%' should not modify the original %".format(op.asArray.first, class)) } }; classe ...

  3. RedGrain2.help Quark

    ... buf_([~b1, ~b2, ~b3].wrapAt(i)); 0.1.wait\;\ \);\ \ //cycle through buffers and randomise playback rate \ (\ fork\\ 20.do\ |i| \ r.buf_([~b1, ~b2, ~b3].wrapAt(i));\ r.rate_(2.0.rand2);\ 0.1.wait;\ \\ \);\ \ //now for something completely di ...

  4. Remap_Influx_by_envelope Quark

    ... didactic first example, single param remapped by envelope q = q ? (); // simple random envelope: goes from -1 left, 0 center, 1 right, // random breakpoints in between q.makeEnv = { |q, numSteps = 8| var numTimes = numSteps.max(2).round(2). ...

  5. 132-obstacle_rocks_synth Quark

    ... 0.5); //dim,grav,maxvel,damp //--objects objs= { var loc= RedVector2D[250, 10].rand; //initial xy location var vel= RedVector2D[3.5, 0].rand; //initial velocity var acc= RedVector2D[0, 0]; //initial acceleration RedObject(world, loc, vel, ...

  6. SETOServerView Quark

    ... ay(0.5, 0.5); /*10.do{|i| e.tServer.setWithFormat("ixya", i, [0, i/10, 0.5, 2pi.rand])}; e.tServer.alive((0..9)) */ ) ( var num = 20, w; num.do{ |i| w = 2pi * (i/(num)); e.tServer.setWithFormat( "ixya" , i, [0, (sin(w)+1*0.4+0.1), (cos(w)+1 ...

  7. TdefPreset Quark

    ... rr( \bebe ); Tdef(\a).envir z.setTarg( \ada ); Tdef(\a).envir ( // morphing and randomizing settings require specs to exist! Spec.add(\plong, [0, 100]); Spec.add(\dt, [0.01, 100, \exp]); w = Window("TdefPreset test", Rect(20, 300, 420, 400) ...

  8. XixiSampleCircle Quark

    ... | if(argstageRect == nil, { stageRect = argpoint; point = Point(stageRect.width.rand, stageRect.height.rand); },{ stageRect = argstageRect; point = argpoint; }); drawer = argdrawer; alpha = 0.5; fillcolor = Color.rand.alpha_(alpha); strokec ...

  9. envelo Quark

    ... e=0, loopnode=0, formfact=2, widfact=0.5, spread=1| var env = EnvGen.kr( Env( { Rand(-1,1.0) }!11, { Rand(0, 1.0)}!10 * timescale, curve, releaseNode: 9, loopNode: loopnode) ); var pitch = (env * [1, 0.33, -1] * intv).midiratio * freq; Spla ...

  10. SCluster Quark

    ... : SCluster { *type {^\Saw} func { ^{|freqs, dists, amps| VarSaw.ar(freqs, {1.0.rand}!this.numChannels, dists*0.5+0.5, amps*AmpComp.kr(freqs)); }; } } SClusterSine : SCluster { *type {^\Sine} func { ^{|freqs, dists, amps| SinOsc.ar(freqs, { ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow