EventStreamPlayer:
Filter:

EventStreamPlayer : PauseStream : Stream : AbstractFunction : Object

two streams combined by a binary operator
Source: Stream.sc

Description

An EventStreamPlayer is used by Event based Patterns.

The EventStreamPlayer holds a stream which returns a series of Events, and a protoEvent. At each call to next, it copies the protoEvent, passes that to the stream, and calls play on the Event returned.

For more on EventStreamPlayer see Understanding Streams, Patterns and Events - Part 4

EventStreamPlayer uses the same control methods and status notifications as Task.

Class Methods

EventStreamPlayer.new(stream, event)

NOTE: You do not explicitly create an EventStreamPlayers, they are created for you when you call Pattern: -play.

Inherited class methods

Instance Methods

.play(argClock, doReset: false, quant)

Arguments:

argClock

(optional) Override the clock assigned in Task.new.

doReset

If true, the task will start over from the beginning. Default is false (task will resume where it was when it was last stopped).

quant

See the Quant helpfile.

.start(argClock, quant)

From superclass: PauseStream

Restart the task from the beginning.

.resume(argClock, quant)

From superclass: PauseStream

Resume the task where it left off.

.pause

From superclass: PauseStream

Stop playing now.

.stop

Stop playing now. (Pause and stop have the same implementation.)

.reset

Set the stream to restart from the beginning the next time it's played.

Inherited instance methods

Undocumented instance methods

.asEventStreamPlayer

.canPause

.cleanup

.cleanup = value

.event

.event = value

.mute

.muteCount

.muteCount = value

.next(inTime)

.removedFromScheduler(freeNodes: true)

.routine

.routine = value

.unmute

.xplay(fadeTime, argClock, doReset: false, quant: 1.0)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/JITLib/Patterns/extRoutine.sc

.xstop(fadeTime)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/JITLib/Patterns/extRoutine.sc