Players internals:
Filter:
crucial-library/Guides (extension) | Libraries > crucial > Players

Players internals
ExtensionExtension

The process and order of starting and stopping play

what happens when you call .play :

prepareToBundle(group,bundle)

set group, server

loadDefFileToBundle(bundle,server)

children loadDefFileToBundle(bundle,server) asSynthDef

makePatchOut(group,isPrivate,bus,bundle)

create a PatchOut object isPrivate: a public bus is one of the main audio outputs of your soundcard. a private bus is one that will be patched and mixed further down the line. When makePatchOut is called on the top player (the one that actually was sent .play) it plays to a public (main audio output), and any internal children are told to allocate and play onto a private bus.

makeResourcesToBundle(bundle)

"resources" include

groups - some players create groups into which they spawn events or groups where they run effects (that must be kept in processing order after the player's primary synth) busses - some players maintain busses for internal use

prepareChildrenToBundle(bundle)

each of the children prepares into the bundle (and they prepare their children)

loadBuffersToBundle(bundle)

samples, buffers needed for efx, sequencing etc.

spawnAtTime(atTime)

spawnToBundle(bundle)

each child: spawnToBundle

didSpawn

called after the player has spawned on the server