Skip to content

RuntimeNode

Defined in: packages/chain/src/nodes/runtime-node.ts:16

new RuntimeNode(id, name, program, options?): RuntimeNode

Defined in: packages/chain/src/nodes/runtime-node.ts:35

string

string

Program

RuntimeNodeOptions

RuntimeNode

bypassed: boolean = false

Defined in: packages/chain/src/nodes/runtime-node.ts:20

ChainNode.bypassed


readonly id: string

Defined in: packages/chain/src/nodes/runtime-node.ts:17

ChainNode.id


readonly kind: "circuit-runtime" = "circuit-runtime"

Defined in: packages/chain/src/nodes/runtime-node.ts:19

ChainNode.kind


mix: number = 1.0

Defined in: packages/chain/src/nodes/runtime-node.ts:21

ChainNode.mix


readonly name: string

Defined in: packages/chain/src/nodes/runtime-node.ts:18

ChainNode.name

getParam(id): number | undefined

Defined in: packages/chain/src/nodes/runtime-node.ts:159

string

number | undefined

ChainNode.getParam


getParams(): Record<string, number>

Defined in: packages/chain/src/nodes/runtime-node.ts:191

Record<string, number>

ChainNode.getParams


getProgram(): Program

Defined in: packages/chain/src/nodes/runtime-node.ts:56

Program


getSupplyProfile(): SupplyProfile | null

Defined in: packages/chain/src/nodes/runtime-node.ts:132

The last applied supply profile, or null until one has been applied.

SupplyProfile | null


getSupplyResolution(): SupplyResolution | null

Defined in: packages/chain/src/nodes/runtime-node.ts:125

The cached supply resolution, or null until setSupplyProfile has resolved once.

SupplyResolution | null


prepare(sampleRate): void

Defined in: packages/chain/src/nodes/runtime-node.ts:136

number

void

ChainNode.prepare


process(input): Float64Array

Defined in: packages/chain/src/nodes/runtime-node.ts:204

Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>

Float64Array

ChainNode.process


reset(): void

Defined in: packages/chain/src/nodes/runtime-node.ts:147

void

ChainNode.reset


setParam(id, value): void

Defined in: packages/chain/src/nodes/runtime-node.ts:169

string

number

void

ChainNode.setParam


setSupplyProfile(profile): void

Defined in: packages/chain/src/nodes/runtime-node.ts:79

Apply a supply profile to the circuit’s external supply stamps.

Resolves once (lazily, cached) with resolveSupplyStamps(source, program), then retargets every resolved stamp through the runtime’s setSupply. A null openCircuitVolts keeps each stamp’s compiled magnitude; an explicit value replaces the magnitude. The sign always follows the stamp’s own volts sign read from getSupplies(), so a positive-ground germanium rail stays negative.

Throws when no source text was given or when nothing resolves, naming the refusal reason codes and rail ids. A program with refused derived rails but one resolved external rail applies to the resolved one and keeps the refusals visible via getSupplyResolution().

Callable before and after prepare() and between process() calls, following the runtime’s contract. There is no audio-domain processing in this path.

SupplyProfile

void