Spawner:
Filter:

Spawner : Pattern : AbstractFunction : Object

A Spawner
Source: Pspawner.sc

Description

Can start subpatterns. Used as an argument inside Pspawner. Tracks subpatterns in a PriorityQueue.

Class Methods

Spawner.new(func, stackSize: 64)

Arguments:

func
stackSize

Inherited class methods

Instance Methods

.par(pattern, delta: 0)

Begin an event stream in parallel to the routine. If delta is non-zero, the pattern will begin that many beats after now, provided that now + delta is later than the next event that the Spawner will generate.

Arguments:

pattern

A Pattern.

delta

A number of beats.

Returns:

The stream from pattern.

.seq(pattern)

Begin an event stream. Do not return until the event is finished.

Arguments:

pattern

A Pattern.

.wait(dur)

Wait a number of seconds, then return.

Arguments:

dur

A number of seconds.

.suspend(stream)

Stops a stream.

Arguments:

stream

An index of the underlying PriorityQueue.

Returns:

The stopped stream, or nil if the stream is not found.

.suspendAll

Stop all substreams.

Inherited instance methods

Undocumented instance methods

.embedInStream(inevent)

Examples

See Pspawner