Skip to content

@liminal-hq/undertone / surroundGains

Function: surroundGains() ​

surroundGains(angleDegrees): number[]

Defined in: surround.ts:40

Computes 7.1 channel gains that place a sound at angleDegrees on the speaker ring (0° front-centre, 30° front-right, ±90° sides, ±150° rears, ±180° dead-behind) using equal-power panning between the two nearest speakers. The LFE channel is always 0 — route to it explicitly with channels() if you want rumble.

Parameters ​

angleDegrees ​

number

Returns ​

number[]