-
... ( w = Window.new.front; v = CompositeView(w, Rect(50, 50, 300, 300)); c = Color.rand; d = c.vary(0.15); v.background = HiliteGradient(c, d, \v); [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window.new.front; k = Slider2D(w, Rect(5 ...
-
... og2, \Log10, \Sin, \Cos, \Tan, \ArcSin, \ArcCos, \ArcTan, \SinH, \CosH, \TanH, \Rand, \Rand2, \LinRand, \BiLinRand, \Sum3Rand, \Distort, \SoftClip, \Coin, \DigitValue, \Silence, \Thru, \RectWindow, \HanWindow, \WelchWindow, \TriWindow, \Ram ...
-
... a = 2048; s = Server.local; // kernel buffer g = Buffer.alloc(s, a, 1); ) ( // random impulse response g.set(0, 1.0); 100.do({ |i| g.set(a.rand, 1.0.rand) }); { var input, kernel; input = SoundIn.ar(0); kernel = PlayBuf.ar(1, g.bufnum, Buf ...
-
... ( w = Window.new.front; v = CompositeView(w, Rect(50, 50, 300, 300)); c = Color.rand; d = c.vary(0.15); v.background = Gradient(c, d, \v); [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window.new.front; k = Slider2D(w, Rect(50, 50, ...
-
... t, depth], wgrav, 20, 0.92); //dim,grav,maxvel,damp //--objects { var mass= 5.0.rand; RedObject(world, RedVector3D[width, height, depth].rand, RedVector3D[2, 2, 2].rand2, RedVector3D[2, 2, 2].rand2*10, mass, mass*5); //world,loc,vel,acc,mas ...
-
... t, depth], wgrav, 20, 0.92); //dim,grav,maxvel,damp //--objects { var mass= 5.0.rand; RedObject(world, RedVector3D[width, height, depth].rand, RedVector3D[2, 2, 2].rand2, RedVector3D[2, 2, 2].rand2*10, mass, mass*5); //world,loc,vel,acc,mas ...
-
... SCStaticText (w, 200@20).string_( "The quick drowned fox" ).background_( Color .rand).align_( \center ); b= SCButton (w, 200@20).states_([[ "The quick drowned fox" ]]).background_( Color .rand); c= SCPopUpMenu (w, 200@20).items_([ "The quic ...
-
... ew.valueAction= defaults[i][j]}}}, {gui.do{|x| x.do{|y| y.view.valueAction= 1.0.rand}}}, {gui.do{|x| x.do{|y| if(0.3.coin, {y.view.valueAction= 1.0.rand})}}}, {gui.do{|x| x.do{|y| y.view.valueAction= y.view.value+0.08.rand2}}}, {gui.do{|x| ...
-
... inFX UP OK --- hat + preDown -> mainFX down OK --- hat + preUP + Down -> mainFX rand OK --- encHat - add snapshot OSCFunc.trace(true, true); OSCFunc.trace (false); /* MKtl(\nUFO).elementsDict.do { |el| el.action.enable(\post) }; */ */ ( // ...
-
... ).flop.sum }).play; ); ( Tdef(\xtest, { loop { Ndef(\xxx).set(\freq, 600 + 50.0.rand2); 0.2.rand.wait; } }).play ); //-- STOP Tdef(\xtest).stop; Ndef(\xxx).stop(2); //-- FREE Ndef(\xxx).clear; Tdef(\xtest).clear;