code wiki / _hdl_build / nx_scene_gate.nx

nx_scene_gate.nx

buildroot/runtime/_hdl_build/nx_scene_gate.nx

6237 B135 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic scene
docsdependenciesstructsconstsfunctions

about

nx_scene_gate.nx -- gate for SCENE-AS-DATA (beat-HS2 rung 2). T1 keyframe interp EXACT: endpoints hit the key values; a midpoint = exact linear blend; pre/post clamp T2 MULTI-CHANNEL independence: 3 channels (an IK-target x, a morph weight, a region param) sampled at the same t give their own interpolated values T3 determinism: sample the whole timeline twice -> identical T4 NXSC1 pack round-trip: save -> load into a FRESH scene -> every channel samples IDENTICALLY; corrupt REJECT T5 PNG knowledge/nx_scene_curve.png: the 3 channel curves plotted across the timeline (eyeball the keyframes) license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_png.nx nx_scene.nx nx_scene_gate.nx

imports: nx_syscalls.nxnx_png.nxnx_scene.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sc_bytes build sc_init sc_hdr sc_channel sc_hdr ↻ sc_chan sc_key_add sc_hdr ↻ sc_key sc_chan ↻ sc_sample sc_chan ↻ sc_key ↻ sc_duration sc_hdr ↻ hw sys_write pn sys_mmap ↻ sys_write ↻ sc_target sc_chan ↻ sc_save sc_hdr ↻ sc_w32 sc_chan ↻ sc_key ↻ sc_load sc_init ↻ sc_r32 sc_channel ↻ sc_key_add ↻ write_png sys_mmap ↻ png_g png_paeth png_sabs

structs

none

consts

29const CH_HANDX: i64 = 100
30const CH_MORPH_SMILE: i64 = 200
31const CH_REGION_SOFT: i64 = 300

functions

13func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func gabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
33func build(base: i64) -> i64
called by 1: main calls 3: sc_initsc_channelsc_key_add
48func main() -> i64