-
... 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)); }. ...
-
... = 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 ...
-
... 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 ...
-
... .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 ...
-
... 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= ...
-
... val, t_trig, 3).poll(t_trig, "Mean of recent 3 values"); }.play; x.set(\val, 10.rand.postln, \t_trig, 1); // Execute this repeatedly x.free; // Using it as an audio filter - compare the sounds of these: x = {WhiteNoise.ar(0.1)}.play; x.free ...
-
... 0, LFNoise1.kr(0.3,0.1,0.1), amp)); 6.do({ out = AllpassN.ar(out, 0.040, [0.040.rand,0.040.rand], 2) }); Out.ar(0,out) }).play(s); ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/Extensions/SC3plugins/PitchDetection/HelpSource/Classes ...
-
... with 2.0 standard deviations around beat 12.0 beat: 12.0.gauss(2.0), degree: 20.rand, type: \instr, instr: "schelp.EventListPlayer", env: Env.perc ) }); Instr("schelp.EventListPlayer", { arg freq=440, env; SinOsc.ar(freq) * EnvGen.kr(env, d ...
-
... / example ( var a, b, c; a = { [100, 200, 300].choose }; // a Function b = { 10.rand + 1 }; // another Function c = a + b; // c is a Function. c.value.postln; // evaluate c and print the result ) ⧉ ✔ See AbstractFunction: Function Compositi ...
-
... oClock.default.tempo_(2); ( BBCut2(CutGroup([CutStream1.new,CutMixer(0,1.0,{1.0.rand},{1.0.rand2})]), ChooseCutProc(0.25,4)).play ) ( BBCut2(CutGroup([CutStream1.new,CutMixer(0,1.0,RollAmplitude.new,CutPan1.new)]), WarpCutProc1(0.25,4)).pla ...