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

InstrSpawner : Patch : HasPatchIns : AbstractPlayer : AbstractFunction : Object
ExtensionExtension

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

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

InstrSpawner.latency

InstrSpawner.latency = value

InstrSpawner.new(func, args, deltaPattern: 1.0)

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

Inherited class methods

Instance Methods

.deltaPattern

.deltaPattern = value

.deltaStream

.delta

.clock

.clock =

.spawnGroup

.storeParamsOn(stream)

Arguments:

stream

.asSynthDef

.makeTask

.spawnNext

.update(changed, changer)

Arguments:

changed
changer

.makeResourcesToBundle(bundle)

Arguments:

bundle

.prepareToBundle(agroup, bundle, private: false, bus, defWasLoaded: false)

Arguments:

agroup
bundle
private
bus
defWasLoaded

.freeResourcesToBundle(bundle)

Arguments:

bundle

.children

.prepareChildrenToBundle(bundle)

Arguments:

bundle

.spawnToBundle(bundle)

Arguments:

bundle

.didSpawn

.startTask

.isPlaying

.didStop

.didFree

.cmdPeriod

.guiClass

Inherited instance methods

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.