Pchain:
Filter:

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

Instance Methods

<>(aPattern)

Add another pattern to the chain.

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

.patterns

.patterns = value

Examples

pattern composition

pattern <> pattern <> pattern