-
loop / repeat create an object that behaves like a stream that returns values for a limited (or infinite) number of times. Function-loop repeats the function forever. f = { 3.yield }; x = Routine({ f.loop }); 10.do({ x.next.postln }) Object ...
-
... // every thread, also a Routine, has a random generator seed: ( r = Routine ({ loop({#[1,2,3,4,5].choose.yield }) }); r.randSeed = 1923; ) // using the routine to fill an array Array .fill(7, r); // setting the random generator seed back t ...
-
... n of time values. *default a default source, if none is given. the default is a loop that does nothing with a 1.0 beat wait time source_(obj) set the source. If a quantization is given, schedule this change to the next beat the object is a ...
-
... to a Buffer . RecordBuf.ar(inputArray, bufnum, offset, recLevel, preLevel, run, loop, trigger, doneAction) RecordBuf.kr(inputArray, bufnum, offset, recLevel, preLevel, run, loop, trigger, doneAction) If recLevel is 1.0 and preLevel is 0.0 t ...
-
DiskIn stream in audio from a file add DiskIn.ar(numChannels, bufnum, loop ) Continuously play a longer soundfile from disk. This requires a buffer to be preloaded with one buffer size of sound. If loop is set to 1, the soundfile will loop. ...
-
... 1, 4) * 0.01 }) ).asStream; 150.do({ x.next.postln }); ) // if the last pattern loops it the combinatorics loop there: x = PstepNadd ( Pseq ([1, 2, 3]), Pseq ([10, 20, 30, 40]), Pseq ([100, 200, 300], inf )).asStream; 50.do({ x.next.postln ...
-
Dbufwr buffer demand ugen superclass: DUGen *new(input, bufnum, phase, loop) all inputs can be either demand ugen or any other ugen. input single channel input bufnum buffer number to read from (single channel buffer) phase index into the b ...
-
LFGauss Gaussian function oscillator LFGauss.ar(duration, width, iphase, loop, doneAction) A non-band-limited gaussian function oscillator. Output ranges from minval to 1. LFGauss implements the formula: f(x) = exp(squared(x - iphase) / (-2 ...
-
... er all current Tdefs: TdefAllGui . Overview: JITLib First Example Tdef ( \x , { loop { 0.5.wait; "aaaaaaaaaaaaaazz" .scramble.postln } }).play; Tdef ( \x , { loop { 0.125.wait; "aazz" .scramble.postln } }); Tdef ( \x , { loop { 0.5.wait; (n ...
-
... there is a shortcut to create a Prout: p(func) // example ( var a; a = Prout ({ loop { 1.yield; 2.yield; 7.yield; 10.do { 1.0.rand.yield } }}); a.asStream.nextN(100).plot; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq= ...