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

PHSuse
ExtensionExtension

defines Pbind(s) for using synth values of a HS

Description

Defines Pbind(s) which, when played, can use values of a synth derived from HS's synth definition.

NOTE: Playing a PHSuse is just an option for using an already playing help synth of a HS, which requires PHS first. See Guide_to_HS_and_HSpar, "Working Scheme".

Class Methods

.new

Arguments:

helpSynth

A HS object.

... pbindArgs

dur1, pbindData1, ... , durN, pbindDataN

where dur is duration value or pattern / stream of durations for corresponding Pbind(s) and pbindData is a collection of Pbind pairs or a collection of Pbind pair collections, defining possibly several Pbinds with the same event timing.

Instance Methods

.play

A PHSusePlayer object is instantiated and started using the TempoClock clock. Quant or SimpleNumber quant lets the player step into the quantization as soon as possible, with respect to the necessary latency. The PHSusePlayer can be stopped and resumed with options.

.asTask

VarGui support, see HS_with_VarGui for examples.

Returns a wrapper Task, which may be passed to a VarGui object. Playing and stopping the wrapper Task invokes playing and stopping behaviour of the underlying PHSusePlayer.

Arguments:

clock

TempoClock.

quant

Quant or SimpleNumber.

newEnvir

Boolean. Determines if Task will be played in a newly generated environment. Defaults to true. This option especially becomes important when PHSuse's pbindData contains functional code with environmental variables.

removeCtrWithCmdPeriod

Boolean. Defaults to true. Determines if notification of PHSusePlayer will be stopped with CmdPeriod.

Examples