Pchain : Pattern : AbstractFunction : Object

pass values from stream to stream
Source: Patterns.sc

Description

Pchain(pattern1, pattern2, ... patternN)
pattern1 <- pattern2 <- ...patternN

Values produced by the stream of pattern2 are used as inval to the stream of pattern1. Therefore pattern1 overrides (or filters) the output of pattern2, and so forth. This is an equivalent to the composite pattern: pattern1 <> pattern2 <> ... patternN

Class Methods

Pchain.new( ... patterns)

Arguments:

... patterns

The patterns to be chained up.

Inherited class methods

7 methods from Object ► show

Instance Methods

<>(aPattern)

Add another pattern to the chain.

Inherited instance methods

42 methods from Pattern ► show
158 methods from AbstractFunction ► show
266 methods from Object ► show

Undocumented instance methods

.embedInStream(inval)

.patterns

.patterns = value

Examples

pattern composition

pattern <> pattern <> pattern