-
... ; //Arrays for the bank of resonators, mostly harmonics near 5ths and 9ths, and random amplitudes: resFreqArray = [2, 2.98, 4.75, 6.21, 9, 9.15, 11.87]; resAmpArray = [0.35, 0.23, 0.10, 0.06, 0.07, 0.05, 0.01]; resDecArray = [0.86, 0.72, 0. ...
-
... output will sound fairly consistent, even though the pattern's \dur is totally random. That is because the \tbeat and \tempo parameters are provided to the Synth via the pattern. It is possible to calculate what the starting phase of the o ...
-
... rets the array as a list of probabilities which should sum to 1.0 and returns a random index value based on those probabilities. ( Array .fill(10, { [0.1, 0.6, 0.3].windex; }).postln; ) normalizeSum Returns the Array resulting from : ( this ...
-
... Array(100,100, a.flat); // Accessing a[15][22] b[15, 22] // Speed comparison 1: random access bench { 100.do(a[100.rand][100.rand]) } bench { 100.do(b[100.rand, 100.rand]) } // Speed comparison 2: iteration bench { 100.do(a.do { |row| row.d ...
-
... t) == obj).not, { ^false }) }); ^true } chooseIndex { var res, n; if(notify) { "random lookup due to lack of key".postln }; res = data.size.rand; n = data.size; (maxSearchLength ? n).do({ arg i; var index; index = (i + res) % n; if(data.at( ...
-
... n.dump; nil }) ]).play; }.value; ) //Pseed(seed, pattern) - set the seed of the random number generator // to force repetion of pseudo-random patterns Pn ( Pseed (44, Pbindf (q, \ctranspose , Pbrown (-3.0, 3.0, 10) ) ) ).play; //Proutine(fu ...
-
... els, title, win, showVals, colscheme ) Examples Arrays: // First let's create a random undulating distribution and look at it a few different ways: a = (0..9).scramble.blendAt((0.1, 0.2 .. 9)); a.plot; a.heatMap(10); a.heatMap(10, Rect (0, ...
-
... tchMode = false; //fixedPitch = pitch; //this.setAteFunc_(soundmode); //this.setRandomBuffer; // get a random sample (if the pool is loaded) } // supplyPredatorArray {|argpredatorArray| // from above level when all preds are initialized // ...
-
Random synths selected from VarSaw, Pulse and WhiteNoise create a texture resambling brasses, woods and flutes. It reminds me Micheal Land "The Dig" soundtrack (https://en.wikipedia.org/wiki/The_Dig). Listen to an extract of it here: ht ...
-
... es a= RedSmooth(0.05); a.filter(1.0.rand); //run repeatedly - low pass filtered random data //plot example a= RedSmooth(0.1); ~squarewave= (0..1000).collect{|x| (x%200>100).binaryValue}; ~smoothed= ~squarewave.collect{|x| a.filter(x)}; [~sq ...