-
... of specific Pattern classes, and proceeding into examples of practical musical tasks written as patterns. Contents PG_01_Introduction : Fundamental concepts of patterns and streams PG_02_Basic_Vocabulary : Common patterns to generate strea ...
-
... initialized var b; // b declared but not initialized, so it defaults to nil t = Task ({ 4.do({ arg item, i; if(i != 3) { i.postln } // print the value of i if it doesn't equal 3 { (a * b).postln }; // when i equals 3, do a * b // ... which ...
-
... estores the current Environment. Controlling Document close Close a document. ( Task ({ var doc; doc = Document ( "background" , "closing in 2 seconds" ); doc.stringColor_( Color .blue); 1.wait; doc.background_( Color .blue(alpha:0.8)); 1.w ...
-
... , Pseq ([1, 2, 3], inf )); x = Pseq ([0, 0, Pdefn ( \x )], inf ).asStream; t = Task ({ loop({ x.next.postln; 0.3.wait }) }).play; Pdefn ( \x , Pseq ([55, 66, 77], inf )); Pdefn ( \x , Pseq ([55, 66, 77],1)); t.stop; // Pdefn can be accesse ...
-
... You may explicitly initalize with more channels, up to 16: ( Speech .init(16); Task ({ 16.do ({ arg i; [0.1, 0.18, 0.2].choose.wait; Speech .setSpeechRate(i,[90, 30, 60].choose); Speech .setSpeechVolume(i,0.07); "no this is private. float ...
-
... any other; it simply provides these options, which you may use if they suit the task, or ignore or override if your task calls for something else entirely. Timing conversions Rhythm is based on \delta and \sustain event keys. Both of these ...
-
... ses Pdefn/Pdef/Tdef which are not useful for PatternProxy, EventStreamProxy and TaskProxy. envir_(event) provide a default environment for the proxy. If given, it is used as an environment for the routine function. When set for the first ti ...
-
... ated. {}.value.postln; A function can be thought as a machine able to perform a task on demand, e.g. a calculator. The calculator can receive input (args) and can output a value, the result of the performed operations. The function definiti ...
-
Breaking synthesis processes into parts that accomplish small well-defined tasks encourages modular design and component reuse (the oop mantra). ( // read a soundfile from disk b = Buffer .read(s, "sounds/a11wlk01.wav" ); // a samplePlayer ...
-
... ated, algorithmic scheduling. Among the things that clocks "play" are routines, tasks, and patterns. To see how a clock "plays" a routine, first examine how a function works in a routine. The first argument (and usually the only argument) t ...