-
... grav, 20, 0.5); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width.rand, height.rand].round(50); var vel= RedVector2D[1.0.rand2, 1.0.rand2].round(1/3); var mass= 1.0.rand; RedObject(world, loc, vel, 0, mass, mass*10); //world,l ...
-
... e piercing {(NTube.ar(Impulse.ar(MouseX.kr(16,1600))*MouseY.kr(0.0,1.0),`(Array.rand(11,0.95,0.99)),`(Array.series(9,0.8,-0.1)),`(Array.rand(10,0.01,0.05)) )*0.025).dup}.play //can end up doing a huge amount of recirculation warning: quite ...
-
... ound(0.001)); }; // test that the elements all respond MKtl('lpd').elAt(\pad, 7.rand, \on).valueAction_(1.0.rand); // Same for the offs, but use automatic group wrapping of arrays of elements: MKtl('lpd').addNamed(\offs, MKtl('lpd').elAt(\p ...
-
... Array(2,1,[ 1, 1 ]); // excite string 1 and 2 separately and both together at a random relative position along their lengths excPointMatrix = Array2D.fromArray(2,3,[ 1.0.rand, 0, 1.0.rand, 0, 1.0.rand, 1.0.rand ]); // listen to string 1 and ...
-
... ront; PaneView(w.view, \horizontal, 5).panes.do({ |p| PaneView(p, \vertical, 2.rrand(9)) }); ) ⧉ ✔ ( // responsive FlowLayout inside panes w = Window().front; PaneView(w.view, \horizontal, 2, [1,2]).panes.do({|p| var i = ScrollView(p, p.bou ...
-
... 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 ...
-
... b (ab)) t = Steno.new; s.boot; // define a few letters t.quelle(\a, { SinOsc.ar(Rand(200, 2130)) }); // quelle (aka source) produces sound t.filter(\f, { |input| LFPulse.kr(ExpRand(1, 10), 0, Rand(0.1, 0.5)) * input }); // filter processes ...
-
... hape; ⧉ ✔ fill a multidimensional array // 2 dimensions Array.fill([3,3], { 1.0.rand.round(0.01) }); Array.fill([2,3], {|i,j| i@j }); // 3 dimensions Array.fill([2, 2, 2], { 1.0.rand.round(0.01) }); Array.fill([2, 3, 4], {|i,j,k| [i, j, k]. ...
-
... ////////////////////////////////// // comb example ( { CombN.ar( SinOsc.ar(500.rrand(1000), 0, 0.2) * Line.kr(1, 0, 0.1), 0.3, 0.25, 6 ) }.scope; ) // allpass example - not much difference from the comb example ( { AllpassN.ar( SinOsc.ar(50 ...
-
... methods new Inherited class methods Instance methods instrArgFromControl value rand guiClass Inherited instance methods Classes (extension) | Libraries > crucial'>crucial > crucial>Editors'>Editors BooleanEditor Extension holds and edits a ...