-
... thDef(\drunkDwarf,{ arg out=0, freq=100, k=0.0, loss=0.999, dur=0.5, pan=0.0, rand=1; var sig, env, sub,senv; env = EnvGen.ar(Env([0,1,1,0], [0.001] ++ ((dur-0.001)*[0.4, 0.6])), doneAction:2); senv = EnvGen.ar(Env([1,1,0,0], [( ran ...
-
... b = SparseArray.reduceArray(a, 10); }.bench ) // accessing: { 1000.do{ a[a.size.rand] == 60.rand } }.bench { 1000.do{ b[b.size.rand] == 60.rand } }.bench // setting: { 1000.do{ a[a.size.rand] = 60.rand } }.bench { 1000.do{ b[b.size.rand] = ...
-
... q,{ arg i; Slider (h, Rect (0,0,20,75)).value_(i / q) }); h.background_( Color .rand); w.front ) // Stretching the layout view. Slider height fills the View automatically. ( q = 8; w = Window .new; h = HLayoutView (w, Rect (0,0,300,300)); h ...
-
... remote control: f = NetAddr.localAddr.port = 7001; f.sendMsg("/1/volume1", 1.0.rand); f.sendMsg("/1/volume8", 1.0.rand); // test first message by MKtl: m = MKtl(\ttm, "rme-audio-totalmix"); m.elAt(\invol).choose.value_(1.0.rand); */ ( devi ...
-
... ndMsg( '/minibee/data', 1, 1,0,0,1, 1,0,0, 1, 0.1, 0.2, 0.3,0.4, 0.5, 0.6 , 1.0.rand, 1.0.rand, 1.0.rand ); n.sendMsg( '/minibee/data', 1, 0,1,1,0, 0, 1,1, 0, 0.1, 0.2, 0.3,0.4, 0.5, 0.6 , 1.0.rand, 1.0.rand, 1.0.rand ); ~bee3.trace(false); ...
-
... l), alphaSpec.map(val)); GUI.pen.stringCenteredIn(str, Rect ((extX*(1-sFactor)).rand, (extY*(1-sFactor)).rand, extX*sFactor, extY*sFactor)); /*str.drawCenteredIn( Rect((extX*0.5 -50).rand, (extY*0.5 -250).rand, 50, 250), Font(fontName, (siz ...
-
... unc = { Pen.translate(100, 100); 10.do{ // set the Color Pen.color = Color.red(rrand(0.0, 1), rrand(0.0, 0.5)); Pen.addArc((100.rand)@(100.rand), rrand(10, 100), 2pi.rand, pi); Pen.perform([\stroke, \fill].choose); } }; w.refresh; ) ⧉ ✔ Pen ...
-
... = { Pen .translate(100, 100); 10.do{ // set the Color Pen .color = Color .red(rrand(0.0, 1), rrand(0.0, 0.5)); Pen .addArc((100.rand)@(100.rand), rrand(10, 100), 2pi.rand, pi); Pen .perform([ \stroke , \fill ].choose); } }; w.refresh; ) *a ...
-
... vuvu; freq = LFNoise0.kr(17.2).lag(1.1).range(57.8.midicps, 58.2.midicps) * Rand(0.96, 1.04) * WhiteNoise.kr.range(0.99, 1.01); amp = LFNoise0.kr(6.94).lag(0.52).range(0.02, 0.4) * if(LFNoise0.kr(2.95) > thresh, 1, 0).lag(0.32); ...
-
... lux").front; w.layout = VLayout( HLayout( ~utext = UserView().background_(Color.rand), ~uouts = UserView().background_(Color.rand), ), HLayout( ~uins = UserView().background_(Color.rand), ~uwg = UserView().background_(Color.rand), ) ); ( ~u ...