InstrSpawner:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > Instr | Libraries > crucial > Players

InstrSpawner
ExtensionExtension

a Pbind-like spawner that plays an Instr with streams supplied to its inputs

Description

a Pbind-like spawner that plays an Instr with streams supplied to its inputs.

One nice feature is that it is easy to supply kr or ar rate Patches to the inputs and this will be played continuously and patched into each event. See examples below.

Class Methods

.latency

.new

Arguments:

func

As per Patch, this may be a function or an Instr name.

args

as per Patch, nil args will be auto-created. args that are Players will play continously in their own synths and be patched into each spawn event synth. args that are of rate \stream (all Pattern classes are rate 'stream') will be converted to an actual stream using .asStream and then iterated. args that are of rate \scalar (floats, Envs, samples) will be passed into the instr function and are subsequently fixed.

deltaPattern

a float or pattern that returns floats. in seconds see InstrGateSpawner for time measured in beats and for variable legato

Instance Methods

.deltaPattern

.deltaStream

.delta

.clock

.spawnGroup

.storeParamsOn

Arguments:

stream

.asSynthDef

.makeTask

.spawnNext

.update

Arguments:

changed
changer

.makeResourcesToBundle

Arguments:

bundle

.prepareToBundle

Arguments:

agroup
bundle
private
bus
defWasLoaded

.freeResourcesToBundle

Arguments:

bundle

.children

.prepareChildrenToBundle

Arguments:

bundle

.spawnToBundle

Arguments:

bundle

.didSpawn

.startTask

.isPlaying

.didStop

.didFree

.cmdPeriod

.guiClass

Examples

the Patch in the width input plays continuously and is patched into each spawn event

note: for beats see InstrGateSpawner

the stereo Patch in the width input causes the InstrSpawner to expand to stereo

sliders are polled on the gui

this is more flexible, is only on when you need it, and lets you do wrapping or scaling of the event count all in the pattern domain.