Skip to content

@liminal-hq/undertone / getOrbitBus

Function: getOrbitBus() ​

getOrbitBus(ctx, orbit, output?): OrbitBus

Defined in: effects.ts:140

The shared reverb/delay bus for one orbit number on ctx, created lazily on first use. Every voice sending to the same (ctx, output, orbit) triple shares one convolver and one delay line — the songs this was built for stack 15-20 simultaneous voices, and a convolver per voice would be unshippable. setRoomSize()/setDelay() are last-writer-wins across every voice sharing the orbit, which is exactly why a track gives each distinct room size its own orbit number.

output is where the bus's wet signal lands (default ctx.destination). Buses are keyed by it too, so a game that plays through its own mix node gets one bus per node, not a fresh convolver on every sound.

Parameters ​

ctx ​

AudioContextLike

orbit ​

number

output? ​

AudioNodeLike = ctx.destination

Returns ​

OrbitBus