Pfin:
Filter:

Pfin : FilterPattern : Pattern : AbstractFunction : Object

limit number of events embedded in a stream
Subclasses: Pfinval

Description

Limits the number of output values from the given pattern or stream. If the stream is able to output more values, Pfin will terminate it early.

The number may be given as a constant, or calculated on the fly from a function or stream. See the "sequence of pitches" example below.

Class Methods

Pfin.new(count, pattern)

embeds count elements of the pattern into the stream.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.count

.count = value

.embedInStream(event)

Examples