AUDIO
Source snapshot · 11 November 2026

Prepared processor routing graphs

Explicit event graphs

While inactive, set_event_routes replaces default input broadcast with up to 4096 explicit event connections. An empty list delivers no events. Edges connect host input or generated node output to node input or host generated output, selecting all events, one stable parameter ID or performance events (notes/MIDI/ UMP). Repeated edges deliberately duplicate events. IDs and combined audio/event cycles validate before replacing routes or order; active edits reject. Event dependencies participate in the node topological schedule even without audio edges.

Preparation uses maximum_events for each node input and maximum_output_events for each node writer and host output. Both maxima are at most 1024. When host output capacity is nonzero, the outer callback supplies matching initially empty OutputEvents. Event scratch is included in the graph's 64 MiB byte cap. Equal frame events retain connection declaration order then source order; merging sorts only by offset and never allocates. Zero-frame callbacks accept offset zero. Offsets are preserved exactly: audio compensation does not delay events or move packets into future blocks. Consumers own audio/event alignment policy.

Merge overflow returns GraphStatus::EventFault with source/destination IDs (None means host), silences audio, discards all host generated output and disables processing until reset. Earlier node histories may have advanced. Generated host output is copied only after the complete merge succeeds, so no partial event prefix escapes a graph fault. This follows the scheduler's existing explicit nonrollback policy; it does not acquire the atomic Processor contract.

Tests cover reversed declaration order, parameter/performance filtering, generated chains, stable equal-time ordering, zero-frame events, duplicate-edge overflow, failed-edit preservation, combined cycles, fault reset and 10,000 heap-free merge/reset callbacks. A native f64 graph routes opaque UMP words unchanged. Native host/device event scheduling and deadline evidence remain separate.

Hosted VST3 Graph-bank nodes accept these events only through an explicit per-node translation: declared parameter routes, a selected note bus and transport, with refuse or ignore policies. See framework event translation. A refused block is silenced and reported as ProcessStatus::Silence, so the Graph continues; the reason is counted and recorded on the bank control, not in GraphStatus. Broadcast routing therefore needs either Ignore policies or explicit per-node event edges, unless silent refused blocks are acceptable.