-
... r(0, Line .kr(0.1, 0, 0.01, doneAction:2) * FSinOsc .ar(12000)) }).send(s); ) ( Routine ({ 20.do({ s.sendMsg( "/s_new" , "grain" , -1); 0.01.wait; }) }).play; ) In cases where you need to keep track of the synth's state, it is advisable to ...
-
... Document .postColor_( Color .blue); Document .postColor_( Color .black); ( r = Routine ({ 10.do({ Document .postColor_( Color .rand); "There is no blue without yellow and without orange." .postln; 0.5.rand.yield; }); Document .postColor_( ...
-
... value_([(0.0, 0.1 .. 1.0), (0.0, 0.1 .. 1.0)]) .setEditable(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); ...
-
... e (default is 4194304, or 16 MB) threaded: if true, the normalization runs in a routine so that SC can respond (intermittently) while processing. Prevents OSX beachballing. Default is false. Using the class method (SoundFile.normalize) will ...
-
... o Event . // write a generator for dictionaries ( d = ( a: 5, b: 7, c: 1, rout: Routine { |inval| inf.do { |i| var event = d.copy.put(\count, i); inval = event.embedInStream(inval) } } ); ); // draw new values d.rout.((z:999)); d.rout.((z:1 ...
-
... ({ arg item, i; item + 10 }); List [3.2, 12.2, 13, 0.4].minIndex iter returns a Routine that returns the elements one by one. r = Set [10, 2, -3, -4].iter; r.next; r.next; r.next; r.next; // nil. Conversion: asBag Answer a Bag to which all ...
-
... etProperty( \showIndex , true ); // cursor mode b.readOnly= true ; w.front; r = Routine ({ 0.1.wait; 30.do({ arg i; b.index_(i%size); b.doAction; 0.1.wait; }); 20.do({ arg i; b.index_(b.size.rand); b.doAction; [0.1,0.2].choose.wait; }); 1.w ...
-
... , no phase, insert quant to 1 beat Pdef ( \x ).quant_(quant); Pdef ( \x ).play; Routine { loop { 8.do { |i| ( "uhr:" +i).postln; 1.wait } } }.play(quant:quant); Pbind ( \degree , Pseq ((0..7), inf )).play(quant:quant); ) Pdef ( \x , Pbind ( ...
-
... nclosing Stream . Timing is derived from thisThread .beats . asStream Creates a Routine and embeds the Env in it. This allows the Env to function as a Stream . ( { e = Env .sine.asStream; 5.do({ e.next.postln; 0.25.wait; })}.fork )
-
... 2002 James McCartney Buffer Fill Commands These are the currently defined fill routines for use with the /b_gen command. Wave Fill Commands There are three defined fill routines for sine waves. The flags are defined as follows: 1 - normali ...