Skip to content

measureInputAttributable

measureInputAttributable(program, sampleRate, sampleAt, options?): readonly InputAttributableNode[]

Defined in: packages/runtime/src/settle.ts:253

Per-node AC attributable to the input: render twice, once driven and once silent, and difference the two.

A plain per-node amplitude list is unreadable on anything with a mains supply. mesa-boogie-dual-rectifier carries 495 V of rail ripple, which occupies the top of any such list and buries a preamp running at 132 V — the signal was invisible until the two renders were differenced, and then the fault (power-tube grids sitting on the fixed bias rail with no drive node at all) fell out in one reading. Pedals have supply ripple too, so this is not an amp-only tool.

Both renders settle first, via the same policy as everything else here, because differencing two unsettled renders subtracts one transient from another.

Program

number

(index) => number

SettleOptions = SETTLE_DEFAULTS

readonly InputAttributableNode[]