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

PHSpar
ExtensionExtension

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

Description

Defines Pbind(s) which, when played, can use values of synths derived from HSpar's synth definitions.

Class Methods

.new

Creates a new PHSpar object.

Arguments:

helpSynthPar

A HSpar object.

switchDur

Duration value or pattern / stream of durations determining the times of HSpar synth switches.

switchIndex

Index or pattern / stream of indices determining HSpar's synth definition to switch to. Defaults to 0.

helpSynthArgs

Collection of Pbind pair collections (size = number of helpSynthPar's help synths), defining synth args to be set at switch times.

pbindArgs

Collection of the form [ dur1, pbindData1, ... , durN, pbindDataN ], whereby dur is a duration value or pattern / stream of durations for the corresponding Pbind(s) and pbindData is a collection of Pbind pairs or a collection of Pbind pair collections, defining possibly several Pbinds with same event timing.

hsIndices

Per default values are taken from the currently switched help synth. Explicitely given hsIndices allow reference to values of other help synths from the corresponding Pbind(s). See the examples below. Expects a collection of valid hsIndex values resp. patterns / streams of valid hsIndex values. A valid hsIndex value is a valid help synth index or a collection of valid help synth indices. The collection's size must equal N, the number of pbindArgs's event timings.

switchOn

Boolean or Pattern / Stream of Booleans, determining if switched help synths should be resumed. Defaults to false.

switchOff

Boolean or Pattern / Stream of Booleans, determining if help synths, which are left at a switch, should be paused. Defaults to false.

set

Boolean or Pattern / Stream of Booleans, determining if next synth input values, defined in helpSynthArgs, should be taken for setting the synth. The first help synth args are always set. Defaults to true.

hsStartIndices

A valid help synth index, a collection of valid help synth indices or one of the symbols: \all, \none. Determines which help synths should be started at the beginning in addition to the one of the first switch index. Help synths of other than first switch index are played with default args.

Instance Methods

.newPaused

VarGui support, see HS_with_VarGui for examples.

Return a collection of new paused Synth(s) derived from HSpar's ugenFunc definition(s), which may be passed to a VarGui object. VarGui will automatically detect the origin from a HSpar definition and gui functionality wil be adapted.

Arguments:

args

Collection of collection(s) of key / value pairs for the HSpar synth(s).

latency

SimpleNumber (seconds).

.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 PHSparPlayer, per default also taking control over playing and stopping the help synth(s).

Arguments:

clock

TempoClock.

quant

Quant or SimpleNumber.

hsStop

Boolean, Integer or SequenceableCollection of Integers determining help synth indices. Determines if help synth(s) will stop together with PHSparPlayer. Defaults to false.

hsPlay

Boolean, Integer or SequenceableCollection of Integers determining help synth indices. Determines if help synth(s) will resume together with PHSparPlayer. Defaults to true.

switchStop

Boolean. Determines if switching will stop together with PHSparPlayer. Defaults to true.

newEnvir

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

removeCtrWithCmdPeriod

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

Examples