-
( ~particles = 5; ~rect = Array.fill(512, {arg i; rrand(-1.0, 1.0)}); ~sig = Signal.sineFill(512, ~rect); ~buff = Buffer.sendCollection(s,~sig); SynthDef(\fm, { arg freq = 60, l_shift = 0, lfo_rate = 0.5,fm_ratio = 3, fm_amount, dur ...
-
... }; // Compute the mean m and standard deviation s of all positive values in array a; aAbs = a.abs; mean = aAbs.mean; sDev = aAbs.stdDev; // mean.postln; // sDev.postln; a.do{|val, i| // collect all indices that are conc ...
-
... , starthighest=1, startlongest=1; var numberbeep, highestbeep, longestbeep; u=Array.new(12); //array to store the numbers, wrapped to 0..11 {for(0, 12, {u.add(0)})}.value; numberbeep=Synth(\beep, [\freq, 200, \cutoff, 200, \pan, 0]); ...
-
... 0..2).collect{|dev| //generate gates for all 3 devices per channel (1/Array.geom(8,1,2)).collect{|item,chan| //generate gates for all channels ~es5_control.(chan,dev,LFPulse.ar(item,0)) //use a LFPulse to control ...
-
... are created using this basic synth. */ s.waitForBoot({ var win, buttonArray, padsArray, patternArray, volumeSlider, menu, whichBus, masterOut = 0.1; padsArray = Array.newClear(16); patternArray = Array.newClear(16); /*~m ...
-
... ws+0 and ends at 105*m.reducedrows+m.reducedcolumns // we take this slice of array, sort it and return the indexes (.order) // then scale column number to position in second \pos, Pseq(m.matrix[105*m.reducedrows+(0..m.reducedcolumn ...
-
... e beat of the number of bars var pAccel = {|nBars = 10, beats = 6| var bar = Array.fill(beats, 1); var nBarsAccel = nBars.div(2); var accelDur = 1 - (1 / nBarsAccel / beats); var patternBars = Array.fill(nBarsAccel, Pseq(bar*accelD ...
-
... ( SynthDef("param", { arg freq = #[300,310], sustain; // # - freq has literal array of defaults! var sig; sig = LFPar.ar(freq: freq, mul: EnvGen.kr(Env.perc(0, sustain, 0.5), doneAction:2)); sig = Splay.ar(sig); Out.ar ...
-
... the Vowel quark: "Vowel".include; // tenor, for instance a = "aeiou".as(Array).collect { |x| Vowel(x.asSymbol, \tenor) }; // function for threshold ( f = { |vowel, thresh = 0.3| var freqs = (40..10000).collect { |x| x + 0.5.r ...
-
... i| ~springs[i] = item; } // ~springs.postln; }, '/springs'); ~springs=Array.fill(~numsprings, 0); ~sel = Array.fill(5, 0); // simulation window drawing if (~max == nil) { ~max = 0.001; "max".postln; }; window = Window.new(bo ...