PHSparPlayer:
Filter:
miSCellaneous_lib/Classes (extension) | Libraries > miSCellaneous > HS and HSpar | Streams-Patterns-Events > HS and HSpar

PHSparPlayer
ExtensionExtension

PHSpar player object

Description

Implicitely instantiated when PHSpar's play method is called, allows stopping and resuming with options also concerning the help synth.

Class Methods

.new

Creates a new PHSparPlayer object.

Arguments:

pHelpSynthPar

A PHSpar object.

Instance Methods

.play

Arguments:

clock

A TempoClock object. If not assigned, takes the default TempoClock.

quant

A Quant object. Makes the player start at the next grid that gives enough time for latency.

hsPlay

Boolean. Determines if help synth should start. Defaults to true.

switchPlay

Boolean. Determines if switch pattern should play. Defaults to true.

pbindPlay

Boolean. Determines if Pbind(s) should play. Defaults to true.

quantBufferTime

SimpleNumber (seconds). Calculated time to include latency for "stepping in" is lengthened by this value. Defaults to 0.2.

.stop

Arguments:

hsStop

Boolean. Determines if help synth should pause. Defaults to false.

switchStop

Boolean. Determines if switch pattern player should pause. Defaults to false.

pbindStop

Boolean. Determines if Pbind player(s) should pause. Defaults to true.

addAction

Function to be evaluated at receive time.

.pause

= stop

.free

Stop the PHSparPlayer and all PHSusePlayers that are using the same HSpar, also free the HSpar.

NOTE: stop (= pause) allows resuming the player - free resets, player can be started again.

Examples