-
... storeSource, <storePath, storeUpdater, storeConnections; var <>guiFunc; var fadeRoutine; var groupProperties; var presets; var groupPrefix; *new { |type=(NumericControlValue)| ^super.new(Environment()).default_(type).know_(false) } *newFrom ...
-
... ment for asStream, PR/BP code can be simpler Pprotect(this.asPattern, { |error, routine| // I might remove this condition later. // It's theoretically possible that an error might occur // in a stream that has already been replaced // by re ...
-
... 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 ...
-
... } { result }; ("[z354] BATCH: gewählter Ordner = " ++ picked.asString).postln; Routine({ var dir, allPaths, files, fftSz, sessionEntries, sessionPath, okCount; dir = picked.asString; if(dir.endsWith("/").not) { dir = dir ++ "/" }; fftSz = ...
-
... / FUN: ( // CPU demanding ~freqs = { |i| 50 * 1.5.pow(i) }!9; ~numChan = 2; r = Routine { var sustain = 8, transition = 3, overlap = 4; var period = 1.5 * 2.sqrt; var harms, amps; 0.5.wait; inf .do{ harms = { |i| (i+1) * ~freqs.choose }!60; ...
-
... , 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( ...
-
... ght be fun for others to play around with too //it is a work in progress ( Routine.run{ y = (Platform.resourceDir +/+ "sounds/a11wlk01.wav"); s.sync; b = Buffer.read(s, y); s.sync; a = b.numFrames; s.sync; ( SynthD ...
-
... , \modelWasFreed); }; ~startAliveThread = { ~stopAliveThread.(); ~aliveThread = Routine { loop { if(~addr.notNil) { ~addr.sendMsg("/alive"); }; 10.wait; }; }; currentEnvironment }; ~stopAliveThread = { ~aliveThread.stop; }; ~setLabel = { |o ...
-
... 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 ...