-
... 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)); }. ...
-
... 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 ...
-
... = 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 ...
-
... 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):: ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... .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 ...
-
... 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 ...
-
... 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= ...