SuperCollider CLASSES

Pdict

pattern that embeds patterns from a dictionary
Inherits from: Pattern : AbstractFunction : Object

Description

A general purpose lookup stream.

Class Methods

Inherited class methods

Undocumented class methods

*new (dict, which, repeats: inf, default)

Instance Methods

Inherited instance methods

Undocumented instance methods

-default

-default = value

-dict

-dict = value

-embedInStream (inval)

-repeats

-repeats = value

-which

-which = value

Examples

SynthDescLib.read;

(
e = (
    a: Pbind(\dur, 0.1, \degree, Pseq([0, 5, 4, 3, 2])),
    b: Pbind(\dur, 0.06, \degree, Pseq([7, 8, 7, 8])),
    c: Pbind(\dur, 0.3, \degree, Pseq([0, 1, 2], 2))
);

x = Pdict(e, Pseq([
            \a, \b,
            Prand([\a, \c])
        ], 4)
    );
x.play;
)