-
... .slice(1,[0,1]); z.flop; // sorting order z = {100.rand}.dup(10); // generate a random array; // order returns an array of indices representing what would be the sorted order of the array. o = z.order; y = z[o]; // using the order as an ind ...
-
... elay lines buffers = Array.fill(qnty, { Signal.new(44100 * 0.03); }); // assign random tap times tapTimes = Array.rand(qnty, 0.015, 0.03); // excitation excitation = Decay2.ar(Impulsar.ar(trig,0.2), 0.01, 0.2, LFNoise2.ar(freq)); // tap the ...
-
... the weight of the actant. Default value is nil. s = Server .default.boot ; ( // random mixing g = Graph .new ; r = Runner .new(g, weight:0.01).gui(step: 20) ; p = Painter .new(g, r) ; h = SlicePlayer (r).initAudio( "sounds/a11wlk01.wav" ) ; ...
-
... iants on the same thing // Use Pconst or Pfindur to create 4-beat segments with randomized rhythm // Pconst and Pfindur both can ensure the total rhythm doesn't go above 4.0 p = Pn(Pbind( // always a low C on the downbeat \degree, Pseq([-7, ...
-
... ue; usrView.refresh; }); }; maxNumber.value= range[1]; presetsPop.items= #["", "random notes", "Octaves", "Overtones", "Overtones2", "Cmaj7", "D#m"]; presetsPop.action= {|view| switch(view.value, 0, { keys.do{|key| key.put(\isClicked, false ...
-
... b to determine which pattern you're sending in. // choose arpeggiation types at random from the list Prand([\up, \down, \random], inf) =>.arpeg BP(\ch1); ⧉ ✔ A Symbol may be used to retrieve a predefined pattern from the Pdefn class; if the ...
-
... ybuf, buf: buf.bufnum, pan: 1.0.rand2, // stereo pan rate: exprand(-0.5, -2) // randomize playback rate ).postln.play; } ); // render it to a buffer SayBuf.prepare(ev, s); 1.wait; }; // wait long enough for the last buffer to finish playbac ...
-
... ded for that calculation should also be present in the Event. // schedule for a random number of beats after the next integer Pfuncn({ thisThread.clock.beats.debug("scheduled for"); nil }, 1) .play(quant: ( nextTimeOnGrid: { |self, clock| c ...
-
... returning kick offset positions, offsets being in the range 0.0 to 1.0. So for random beats of a 4/4 source, try {([0,1,2,3]/4).choose} snareoffset choose snare offset positions. phraselength Typically 4.0 or 8.0. blockdiv The way to do th ...
-
... that does nothing runs really fast bench({ nil }); // filling a big array with random numbers takes a while longer. bench({ Array.rand(100000, 0.0, 1.0) }); // different operations may take different times bench({ 100000.do { 3.hypot(2) } ...