-
... e(0, false ); ) ( r = Routine ({ var j = 0; 20.do({ arg i; b.select((b.size -1).rand.abs); 0.1.wait; b.x_(1.0.rand.abs); b.y_(1.0.rand.abs); }); b.select(-1); }); AppClock .play(r); ) //show boxes with a string in it: ( a = Window ( "text-b ...
-
... // the function is assigned to th slots from 1 to 4 ~z[1..4] = { SinOsc .ar(exprand(300, 600), 0, LFTri .kr({exprand(1, 3)} ! 3).sum.max(0)) * 0.1 }; // the function is assigned to the slots 1, 2 and 3 (subsequent) ~z[1..] = [ { SinOsc .ar ...
-
... close the window. ( w = Window .new(border: false ); w.view.background_( Color .rand); w.front; w.fullScreen; Button .new(w, Rect (200,200,200,200)).states_([[ "Close Window" ]]).action_({w.endFullScreen;w.close}); ) isClosed Returns a Bool ...
-
... ished. x = SynthDef ( "test" , { OffsetOut .ar(0, BPF .ar( Impulse .ar(4) * 10, Rand (9000, 1000), 0.1)) }); // this is why addPrepare is used. a.addPrepare([ "/d_recv" , x.asBytes]); // add is used with synchronous operations, like startin ...
-
... ain // examples ( Pchain ( Pbind ( \detune , Pseq ([-30, 0, 40], inf ), \dur , Prand ([0.2, 0.4], inf )), Pbind ( \degree , Pseq ([1, 2, 3], inf ), \dur , 1) ).trace.play; ) // also events can be used directly: ( Pchain ( Pbind ( \degree , ...
-
... s,[ \out , 0, \bufnum , b]); ) ( Routine ({ var n = 32; 50.do({ b.sine1( Array .rand(n,0,1).cubed, true , true , true ); 0.25.wait; }); }).play; ) b.free;
-
... { loop { x.advance(0.1); 0.1.wait } }.play; ) ( Task { 5.do { x.advance(1); 2.0.rand.wait; } }.play; ) x.advance(8.1); Pbind ( \degree , Pseries (0, 2, 8), \dur , 0.25).play(x); ( Task { 5.do { x.advance(0.20); 1.0.wait; } }.play; )
-
... / Post window says: 3, i.e it returns itself f.value; // Still says 3 f = { 3.0.rand; }; // Here it's a Function. f.value; // 3.0.rand means return a random value from 0 to 3.0 exclusive. f.value; // something different f.value; // somethin ...
-
... er .alloc(s,2048); b.zero; c.zero; d.zero; ) ( 50.do({ |it| c.set(20*it+10, 1.0.rand); }); 3.do({ |it| b.set(400*it+100, 1); }); 20.do({ |it| d.set(40*it+20, 1); }); ) ( SynthDef ( \conv_test , { arg kernel1, kernel2, t_trig=0; var input; i ...
-
... thmic value \dur , Pif ( Pkey ( \degree ).odd, 0.25, 0.5) ).play; p.stop; Pseed(randSeed, pattern): Random number generators depend on seed values; setting a specific seed produces a repeatable stream of pseudorandom numbers. Pseed sets the ...