-
Stream Inherits from: Object : AbstractFunction Stream is an abstract class that is not used directly. The following attempts to document some aspects of the use of Streams for music generation. Overview A Stream represents a sequence of va ...
-
... .25 ).play; p.stop; // more complex example, showing multichannel expansion and sequences of slots: p = Pbind( \degree, ( PhidKey( Pseq([[\lx,\ly],\rx,\ry],inf), a, inf )*12 ).round(1), \dur, 0.25 ).play; p.stop; // clean up: close the devi ...
-
Pseq sequentially embed values in a list superclass: ListPattern cycles over a list of values. The repeats variable gives the number of times to repeat the entire list. Pseq(list, repeats, offset) ( var a, b; a = Pseq ([1, 2, 3], 2); // rep ...
-
... (0.8, 8).postln; lace(length) Returns a new Array whose elements are interlaced sequences of the elements of the receiver's subcollections, up to size length . The receiver is unchanged. ( x = [ [1, 2, 3], 6, List [ "foo" , 'bar' ]]; y = x. ...
-
Ppatlace interlace streams superclass: Pseq Similar to Place , but the list is an array of streams or patterns. The results of each stream will be output in turn. Ppatlace(list, repeats) // example p = Ppatlace ([ Pwhite (1, 5, 5), Pgeom (1 ...
-
Scheduling Events Music happens over time, and to make effective music, it's necessary to control when things happen. In SuperCollider, this is done by scheduling things on clocks. Clocks A clock in SuperCollider has two major functions. It ...
-
... 1).postcs; }); ) lace(length) Returns a new List whose elements are interlaced sequences of the elements of the receiver's subcollections, up to size length . The receiver is unchanged. ( x = List [ [1, 2, 3], 6, List [ "foo" , 'bar' ]]; y ...
-
random generator seed Every Thread in sclang has a (pseudo-) random number generator that is responsible for all randomization within this thread. Each random number generator has its own seed (starting point) from which the series of value ...
-
... \amp , 0.2).play; ) The ListPatterns can be put around Event Streams to create sequences of Event Streams. ( Pseq ([ Pbind ( \instrument , \acid , \dur , Pseq ([0.25, 0.5, 0.25], 4), \root , -24, \degree , Pseq ([0, 3, 5, 7, 9, 11, 5, 1], ...
-
... preceeding sections showed how to use Streams and Patterns to generate complex sequences of values for a single parameter at a time. This section covers Environments and Events, which are used to build a symbolic event framework for patter ...