-
... .odd; }); 6.do({ b.next.postln; }); ) Making Music with Streams Here is a sound example to show how you might use Streams to generate musical material. ( s = Server .local; SynthDef ( \help_SPE1 , { arg i_out=0, freq; var out; out = RLPF .a ...
-
... , buttonNumber, clickCount, clickPos ( //add a mouse action to this document: //example: easy button: //when you click in front of a 17 a SinOsc will start up; s.waitForBoot({ Document .current.mouseUpAction_({ arg doc; var char; char = doc ...
-
... tasks, OSC messages, and capabilities related to server-side buffers – see the examples lower down this document for many examples of using Buffers for sound playback and recording. Buffers are commonly used with PlayBuf , RecordBuf , Disk ...
-
... ions within an Environment, so it returns the return value of the function. For example ( a = Environment .make({ ~a = 100; ~b = 200; ~c = 300; }); a.postln; ) creates an environment, while a.use({ ~a + ~b + ~c }).postln; evaluates the func ...
-
... se the 'all' message to collect all of the Routine's results into a list. A few examples all {: x/(x+1), x <- (1..5) } [ 0.5, 0.66666666666667, 0.75, 0.8, 0.83333333333333 ] all {:[x,y], x <- (1..3), y <- [ \a , \b , \c ] } [ [ 1, a ], [ 1, ...
-
... s just one pattern; wrapping Plazy in Pn does it many times.) The logic in this example is a bit more involved: for each measure, start with arrays containing the basic rhythmic pattern for each part (kick drum, snare and hi-hat) and insert ...
-
... ynchronizing sonic events that should play together. PG_06g_Data_Sharing has an example of its use to pass data from a bass pattern to a chord pattern. \sustain: Number of beats to wait before releasing a Synth node on the server. The Synth ...
-
... w is called and an object is actually created and its memory allocated. // this example adds no new functionality *new { ^ super .new } // this is a normal constructor method *new { arg arga,argb,argc; ^ super .new.init(arga,argb,argc) } in ...
-
... of 10 "counting" algorithms. The algorithms are numbered 1 through 10. Run the examples to see the algorithms. Lis t[1, 2, 3, 4].pyramid(1).postln; ( 10.do({ arg i; Lis t[1, 2, 3, 4].pyramid(i + 1).postcs; }); ) lace(length) Returns a new ...
-
... yval) fixedSelection_ (bool) allConnections_(arg1) allConnections doMetaAction Examples // use as envelope view ( //use shift-click to keep a node selected w = Window ( "envelope" , Rect (150 , Window .screenBounds.height-250, 250, 100)).f ...