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

PHSplayer
ExtensionExtension

PHS player object

Description

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

Class Methods

.new

Creates a new PHSplayer object.

Arguments:

pHelpSynth

A PHS object.

Instance Methods

.play

Arguments:

clock

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

quant

Quant or SimpleNumber. Makes the player start at the next grid that gives enough time for latency.

hsPlay

Boolean. Determines if help synth should also start. 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 stop. Defaults to false.

pbindStop

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

addAction

Function to be evaluated at receive time.

.pause

= stop

.free

Stop the PHSplayer and all PHSusePlayers that are using the same HS, also free the HS.

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

Examples