-
... ar fspread; env1 = EnvGen.kr(Env([1,2,1],[1.7,0.8]), 1); fspread = 0.0007 + Rand(0,0.007); sig = SinOsc.ar(freq * ((0..7)/7 - 0.5 * fspread + 1)); sig = sig * ( sig/(sig+1.1)*50 * env1 ).clip(0.5); sig1 = sig * (sig.abs > Rand(0.1 ...
-
... fx; osc = Mix(VarSaw.ar( freq: freq.lag(lagamount) * [1.0, 1.001, 2.0], iphase: Rand(0.0,1.0) ! 3, width: Rand(0.5,0.75) ! 3, mul: 0.5)); filterenv = EnvGen.ar( envelope: Env.asr(0.2, 1, 0.2), gate: gate); filter = MoogFF.ar( in: osc, freq: ...
-
... set=300; var amps, freqs, freqsDetune, ringTimes; var lFreqs, rFreqs, rTimes; //random freqs = #[ 699.615, 1523.95, 4651.27, 639.54, 566.455, 1040.9, 554.62, 514.324, 4835.18, 2518.03, 830.627, 11601.9, 958.062, 949.916, 2454.64 ]; freqsDet ...
-
... 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 ...
-
... el.value.round(0.001)) }; c.elAt(0).deviceValueAction_(1023); 10.do { c.elAt(16.rand).deviceValueAction_(1024.rand); }; // the coding given in modality issues #177 seems to be : // 7 bits of value are crude wheel position value, // first 3 ...
-
... (1)); } // if index within settings range, take that preset, // else make a new randSet with index as seed setCurrIndex { |index, rand = 1.0| var found = settings[index]; if (found.notNil) { this.setCurr(found.key) ^found.key } { this.setRa ...
-
... 2009 GAWorkbench { //probabilities var <>mutationProb, <>coProb; //feats var <>randomChromosomeFunc, <>fitnessFunc, <>mutationFunc, <poolSize, chromosomeSize; //internal state var <>genePool, <fitnessScores; //pluggable crossover function ...
-
... di.midicps, mul: EnvGen.kr(Env.perc(0, 0.5), timeScale: 0.5, levelScale: 0.3)), Rand(-1, 1)) * EnvGen.kr(Env.perc(0, 0.5), timeScale: 1.3*0.5, levelScale: Rand(0.3, 0.5), doneAction:2));}).add;) (~phase = Pbind(*[ instrument: \x, dur: 0. ...
-
... r.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(Point(175.rand, 175.rand), 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ var radius= 100.rand; Pen.fillColor= Color.blue(0.5, radius/100); Pen.fillOva ...
-
... 2, 5, 2); Routine.run({ loop({ play({ LinPan2.ar(EnvGen.ar(e) * PMOsc.ar(2000.0.rand, 800.0.rand, Line.kr(0.0, 12.0.rand, 9), 0, 0.1), 1.0.rand2) }); 2.wait; }) })) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/PMOs ...