Skip to content

SUPPLY_SOURCE_OHMS

const SUPPLY_SOURCE_OHMS: 1 = 1

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

Series impedance of a pedal supply, in ohms: the default position of what belongs to a user-selectable power profile, not a physical claim about one cell.

Decided by Joseph, 2026-08-13: source impedance is an input profile on the UI, alongside the other things a player chooses about how a pedal is fed. A fresh alkaline, a sagging one and a regulated adapter are three profiles a user picks between, so this stage does not have to guess which the packet meant — a question that has no answer, since a schematic draws a 9 V battery symbol and internal resistance is a property of the cell rather than of the drawing.

Until that control exists, this is the default, and it is the low end of the plausible range so the default errs toward the ideal behaviour it replaces: a fresh 9 V alkaline measures 1-2 ohms, a depleted one tens, an adapter well under one. Measured, one ohm moves a working pedal’s rail by about 10 mV — boss-bd-2-blues-driver by 9.9 mV, boss-ge-7 by 19 mV — and the corpus’s ngspice agreement is unchanged at 31.

What zero cost. Zero is the one value known to be wrong, since no real supply has it, and it let a supply deliver unbounded current: ibanez-ts808 drew 193 A through the short diode-forward-across-supply warns about and still rendered a plausible gain of 0.506. One ohm collapses that rail instead, which is also what let the diode’s limitJunction land after two reverts.

Not a battery model. It does not deplete and it does not tell an adapter from a cell. Both are the profile’s job once it exists; this is the mechanism and one defensible default.