-
... ar(Line.ar(0, 1, 8,1,0,2)*10000.rand+(c*10000.rand), 0, 0.5)}.play;) // Semi Random Saw Rhythms - c = fundFreq; Run it a couple of times ({a=VarSaw;b=SyncSaw;c=1;d=a.ar([c*50.rand,c*5.rand], 0, 0.5, 0.5)+b.ar([c*5.rand,c*50.rand], [c*50 ...
-
... rse far less efficient than send , but it can make sense; e.g. the synthdef has random elements. UGens like Rand(300, 400) create new random values on every send, while client-side random functions like exprand(1, 1.3) only get built once; ...
-
... (i, 256) } }, // reset waveform $1, { a.size.do{ |i| f.(i, 512.rand) } }, // random waveform $2, { Array.interpolation(1024, 0, 512).do{ |val, i| f.(i, val) } }, // linear ramp $3, { Array.fill(1024, { |i| sin(i/1024*2pi) * 256 + 2 ...
-
... dSmoothUD(0.05, 0.95); a.filter(1.0.rand); //run repeatedly - low pass filtered random data //plot example a= RedSmoothUD(0.9, 0.1); ~squarewave= (0..1000).collect{|x| (x%200>100).binaryValue}; ~smoothed= ~squarewave.collect{|x| a.filter(x) ...
-
... adius * theta.sin]; } value{ var targetLocal, targetWorld; //first, add a small random vector to the target’s position wanderTarget = wanderTarget + RealVector2D[rrand(-1.0, 1.0)*wanderJitter, rrand(-1.0, 1.0)*wanderJitter]; wanderTarget = ...
-
... l could either be one label or an array of labels). h = GNUPlot.new; // some 2d random distributions ( d = {[1.0.sum3rand, exprand(0.001, 1.0)]}.dup(1000); h.scatter(d, 'y: exp/x: qgauss') ) ( d = {{1.0.sum3rand}.dup(2)}.dup(1000); h.scatte ...
-
... l could either be one label or an array of labels). h = GNUPlot.new; // some 2d random distributions ( d = {[1.0.sum3rand, exprand(0.001, 1.0)]}.dup(1000); h.scatter(d, 'y: exp/x: qgauss') ) ( d = {{1.0.sum3rand}.dup(2)}.dup(1000); h.scatte ...
-
... methods Iteration do reverseDo for forBy collect collectAs to geom fib factors Random Numbers xrand xrand2 Conversion asAscii asDigit asBinaryDigits asDigits asBinaryString asHexString asIPString asStringToBase asUnicode degreeToKey grayCo ...
-
Generating minimal music by repeating a random chord over and over again, varying individual note volumes (and after a while also timings) to bring out different aspects of the chord. Every time you run it, it will generate a new piece. I u ...
-
... 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 ...