Skip to content

@liminal-hq/undertone / getOrbitBus

Function: getOrbitBus()

getOrbitBus(ctx, orbit): OrbitBus

Defined in: effects.ts:119

The shared reverb/delay bus for one orbit number on ctx, created lazily on first use. Every voice sending to the same (ctx, orbit) pair 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.

Parameters

ctx

AudioContextLike

orbit

number

Returns

OrbitBus