Pfindur:
Filter:

Pfindur : FilterPattern : Pattern : AbstractFunction : Object

limit total duration of events embedded in a stream

Class Methods

Pfindur.new(dur, pattern, tolerance: 0.001)

Embeds elements of the pattern into the stream until the duration comes close enough to dur.

Arguments:

dur

The duration in beats after which the stream should end, derived from the event keys dur or delta. The delta of the last event is adjusted so that the total duration fits this value. If the stream is shorter than dur, a filler (see below) can be used to fill the gap.

pattern

The pattern to cut short. This should be an event pattern (returning a stream of events).

tolerance

measuring tolerance for the total duration to avoid jitter

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.dur

.dur = value

.embedInStream(event)

.tolerance

.tolerance = value

Examples