code wiki / (root) / nx_rec_grade_gate.nx

nx_rec_grade_gate.nx

buildroot/runtime/nx_rec_grade_gate.nx

4224 B122 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_rec_grade_gate.nx -- REFEREE for the recording-quality grader (nx_rec_grade). Synthesizes signals with known defects and checks the grader flags each: GOOD : triangle amp 8000, no offset -> REC_GOOD (trips nothing) CLIPPED: triangle amp 50000 (pins to +-FS) -> REC_CLIPPED QUIET : triangle amp 500 -> REC_TOO_QUIET DC_BIAS: triangle amp 8000 + offset 12000 -> REC_DC_BIAS LOUD : square amp 30000 (hot, no clip) -> REC_TOO_LOUD The GOOD case is the NEG-CONTROL: a clean recording must not trip any defect. Evidence -> stdout + knowledge/status/rec_grade_gate.log. Exit 0 GREEN / 1 RED. Sovereign x86_64 throughout. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_rec_grade.nx nx_rec_grade_gate.nx

imports: nx_syscalls_x86_64.nxnx_rec_grade.nx

imported by: nobody (leaf or entry point)

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

main gp gen_tri _store_i16 grade1 nx_rec_grade _rec_i16 _rec_isqrt vm_isqrt gp ↻ gn gen_sq _store_i16 ↻

structs

none

consts

16const NS: i64 = 2048

functions

18func gp(logfd: i64, s: *u8) -> i64
called by 2: grade1main
25func gn(logfd: i64, v: i64) -> i64
called by 1: grade1
40func _store_i16(buf: *u8, i: i64, v: i64) -> i64
called by 2: gen_trigen_sq
51func gen_tri(buf: *u8, n: i64, amp: i64, dc: i64) -> i64
called by 1: main calls 1: _store_i16
64func gen_sq(buf: *u8, n: i64, amp: i64) -> i64
called by 1: main calls 1: _store_i16
75func grade1(logfd: i64, label: *u8, pcm: *u8, out: *i64) -> i64
called by 1: main calls 3: nx_rec_gradegpgn
87func main() -> i64