Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... d.new; //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...

  2. UGens Help

    ... seX MouseY MouseButton Demand UGens: Demand Duty TDuty Dseries Dgeom Dseq Dser Drand Dxrand Dswitch1 Dwhite Diwhite Dbrown Dibrown In/Out SoundIn In InTrig InFeedback Out ReplaceOut XOut OffsetOut LocalIn LocalOut SharedIn SharedOut Oscilla ...

  3. SolarSystem Doc

    ... = SSObject.new(w,name:p.name.postln,channel:i,size:i).locSph_([p.perihelion,2pi.rand,0]); o.setMotion(\orbit,2pi*p.orbitalPeriod.reciprocal.postln); // 1 earth year -> 2pi rad/s // sound mapping: the bigger the lower, the faster the rotatio ...

  4. cl-manual-examples Quark

    ... rts on the downbeat and occupies the whole bar. /y = "[1,]::\ins("*", 3, 0.5)::\rand("13467", "*")"; /y+; // 2. Chain starts on beat 2 // Note that a generator source can appear // anywhere within the bar! /y = "1,|[6,]::\ins("*", 3, 0.5):: ...

  5. 12-Groups Doc

    ... Sin2, { arg outBus = 0, effectBus, direct = 0.5, freq = 440; var source; // 1.0.rand2 returns a random number from -1 to 1, used here for a random pan source = Pan2.ar(Decay2.ar(Impulse.ar(Rand(0.3, 1), 0, 0.125), 0.3, 1, SinOsc.ar(SinOsc.k ...

  6. FreqSpectrum Quark

    ... ble).phase; // reset phase at DC & Nyquist - to 0 or pi halfPhase.put(0, pi * 2.rand).put(this.size / 2, pi * 2.rand); // mirror phase, FreqSpectrum expects full spectrum phase = halfPhase ++ halfPhase[(rfftSize-2)..1].neg; }, { // dft phas ...

  7. Amen Break Glitches by phrontist (Bjorn Westergard) Code

    ... le.kr(bufnum) * speed, Impulse.ar(freq), startPos: (pos*BufFrames.kr(bufnum)) + Rand(0,20), doneAction:2, loop: 1) * boost; player = RLPF.ar(player, SinOsc.ar(wobble/sustain).range(20000,80), XLine.ar(0.2,0.9,sustain)) * boost; Out.ar(o ...

  8. RedAutoScale Doc

    ... .round(25), 0, 0.2)}.play a.free //-- a= RedAutoScale(-10, 10); a.autoScale(100.rand.postln) //run repeatedly. eventually 0 will be -10 and 99 will be 10 a.min a.max ⧉ ✔ helpfile source: /tmp/scquark_hs/redSys/HelpSource/Classes/RedAutoScal ...

  9. Maybe Help

    ... 2, 3]); ~b = Pseq ([5, ~a, ~a + 10], inf ); ~b.value.asStream.nextN(10); ~a = Prand ([100, 200]); ~b.value.asStream.nextN(10); // to do : flop! //////////////// deep recursion // with normal functions: f = { |x| if(x <= 1) { 1 } { x * f.(x ...

  10. 031-wave_synth Doc

    ... 0.2); //dim,grav,maxvel,damp //--objects sys= RedWaveSystem(n, {|i| i}, 0, {1.0.rand}, 0.1); {|i| var loc= RedVector2D[width/n*i, height/2]; sys.add(RedObject(world, loc, nil, nil, 1.5, 12)); //world,loc,vel,acc,mass,size }.dup(n); synths= ...

prev 101 102 103 104 105 106 107 108 109 110 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow