-
... ip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite(1, 5, inf).asStream.nextN(10); // Random integers 1-5, multiplied by two gives even integers 2-10 (Pwhite(1, 5, inf) * 2).asStream.n ...
-
... for modification ⧉ ✔ Scale. choose ( size: 7 , pitchesPerOctave: 12 ) Creates a random scale from the library, constrained by size and pitchsPerOctave if desired. Scale.choose; // could be anything Scale.choose(7); // will be a seven-note s ...
-
... is a FloatArray a stream of scales is a sequential series of these arrays ( // random pentatonics p = Instr("scaleStream.randpentas"); // returns a pattern when valued x = p.value(4,16,0); Pbind ( \degree , Pseq([1,3,5,7,9,11,3,2],inf), \s ...
-
( SynthDef(\bla, { arg out=0, amp=0.1, gate=1, pan=0, freq=200; var sig; var tab; tab = \tab.kr(1 ! 15); sig = LFSaw.ar(freq * tab.abs); sig = sig.sum; sig = RLPF.ar(sig, Rand(10,freq*2) + 100 * SinOsc.ar(tab ...
-
... highest velocity value 'softest': use the note with the lowest velocity value 'random': randomly pick a note from the currently playing notes 'arp_up': index through the currently playing notes from low to high 'arp_down': indext through t ...
-
Plprand random values that tend toward lo superclass: Pattern Plprand(lo, hi, length) lo, hi lower and upper boundary of values (default: 0.0 and 1.0) length number of values produced (default: inf) // example ( var a, c, w; a = Plprand (0. ...
-
Phprand random values that tend toward hi superclass: Pattern Phprand(lo, hi, length) lo, hi lower and upper boundary of values (default: 0.0 and 1.0) length number of values produced (default: inf) // example ( var a, c, w; a = Phprand (0. ...
-
... plingRate(rate); this.setFilterCutoff(cutoff); data= {1024.rand}!4; //fill with random data inf.do{ if(mute.not, { data= (data+({0.gauss(10)}!4)).asInteger.clip(0, 1023); action.value(*data); }); (1/sr).wait; }; }).play(SystemClock); } clos ...
-
... nstrument: \glisson, freq: envir.freq ).play; 1.wait; }; }); // set a range for random freq values: Tdef(\tink).set(\minfreq, 400); Tdef(\tink).set(\maxfreq, 4000); Tdef(\tink, { |envir| 32.do { var freq = exprand(envir.minfreq, envir.maxfr ...
-
... 32 with step 2. *rand(size, minVal, maxVal) Fill a SequenceableCollection with random values in the range minVal to maxVal. Array .rand(8, 1, 100); *rand2(size, val) Fill a SequenceableCollection with random values in the range -val to +va ...