-
... et[Set[1, 2, 3], Set[Set[41, 52], 5, 6], 1, 2, 3].maxDepth ⧉ ✔ . 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 ...
-
... , 101, 1102]; ⧉ ✔ 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: ...
-
... orbit = true; // set ~orbit to false to turn orbit off (see after end of block) Routine { while ( {~orbit}, { radius = (pow(body_pos_x, 2) + pow(body_pos_y, 2)).sqrt; grav_accel = (grav_const * (earth_mass / pow(radius, 2))); angle = atan2( ...
-
... closing 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 . Discussion: ( { e = Env.sine.asStream; 5.do({ e.next.postln; 0.25.wait; }) }.for ...
-
... e whole buffer granulation process from language side, using Patterns, Tasks or Routines. What is the best way? To a large extent this is a question of personal preference. Regarding CPU performance granulation ugens have an advantage, wher ...