Skip to content

SWITCH_ON_OHMS

const SWITCH_ON_OHMS: 0.01 = 1e-2

Defined in: packages/compiler/src/device-laws.ts:70

Closed and open switch resistances. Not arbitrary: the ratio sets the matrix condition number, so 1e-2 to 1e9 is chosen to be electrically indistinguishable from ideal at audio levels while staying far from the solver’s precision limit.