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) - create Bus and Group(s) if needed


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