-
... ://twitter.com/#!/codehop/status/106521929359433729 fork{loop{play{f=_*3.pow(17.rand/13);e=EnvGen.ar(Env.perc,1,0.3,0,1,2);PMOsc.ar(f.([438,442]),f.(880),f.(e))*e};[1/6,1/3].choose.wait}}
-
... (nil, [ \s_new, \Oscer1, 1001, 1, 0, \freq, 26.midicps, \envLev, rrand(0.6, 0.8), \nextTime, nextTime ]); (nextTime*2).wait; }); }).play; Routine({argnextTime; varn = 7; OSCSched.global.tdeltaTillNext(4.0) ...
-
my hobbit: adding random arrays of LFO everywhere (bonus: a glitch i don't know where it come from) ( SynthDef(\bass, { arg freq = 440, amp = 0.5, gate = 1; var snd, env, oscfreq, output; var lfo; oscfreq = {freq * LFNoise2.kr(Rand(0 ...
-
... t = Pan2.ar(out,0); Out.ar(outbus,out); }).send(s); ) ( p = Prand( [31,40, 45,64,68,69], inf).asStream; q = Prand( [3,0.7,1,0.5], inf ).asStream; e = Prand([59,72,76,79,81,88,90],inf).asStream; t = Task({ inf.do({ ...
-
... es.do { |item, index| ctrlSines[index] = SinOsc.kr(modFreq * 1.2 * (1 + (Rand(0, 0.5) * freqDeviation) ), 0, amp * 5); }; src = GPoints.gr( ctrlMul.range(2, 40), [ [ctrlSines[0], ctrlSines[ ...
-
... ============================== Birth 1. New beastie in the list age=0 sex=random position:shoot away energy: if possible standard initial energy. 2. energy of parents decreases. 3. When shooting away: parents jump aside, child i ...
-
... ency at which the PlayBuf UGen is triggered to jump to the start position trigrand = 0, //the actual trigger frequency is calculated by (\trigfreq * (2 to the power of (this * an LFNoise UGen with range -1 to 1))); setting this t ...
-
... ; Window.closeAll; makefood = { //colorful snacks foodcolor = Color.rand(0.25,1.0); foodpos = nil; //make sure food isn't placed on snake body while( {foodpos == nil}, { tryfoodpos = rand(height) @ rand(width); ...
-
... r output = Mix( Array.fill(numOfSines, { arg i; var envLfoSpeed = Rand(minEnvLfoSpeed, maxEnvLfoSpeed); var envLfo = i * SinOsc.kr(envLfoSpeed).range(1, maxEnvLfoDepth); var env = max(0, LFNoise1.kr(envLfo)); va ...
-
... (alternating with a rest) ( b = Pbind( \instrument, "spacey", \midinote, Prand([\rest, Pseq([24, 31, 36, 43, 48, 55])], inf), \dur, 0.2, \amp, 0.5 ).play; ) b.stop; // middle arpeggio ( m = Pbind( \instrument, "space ...