code wiki / _hdl_build / nx_scene_gate.nx
nx_scene_gate.nx
buildroot/runtime/_hdl_build/nx_scene_gate.nx
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
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
structs
| none |
consts
| 29 | const CH_HANDX: i64 = 100 |
| 30 | const CH_MORPH_SMILE: i64 = 200 |
| 31 | const CH_REGION_SOFT: i64 = 300 |
functions
| 13 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func pn(v: i64) -> i64 |
| 26 | func gabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } |
| 33 | func build(base: i64) -> i64 |
| 48 | func main() -> i64 |