nx_rec_grade_gate.nx
buildroot/runtime/nx_rec_grade_gate.nx
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
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
structs
| none |
consts
| 16 | const NS: i64 = 2048 |
functions
| 18 | func gp(logfd: i64, s: *u8) -> i64 |
| 25 | func gn(logfd: i64, v: i64) -> i64 called by 1: grade1 |
| 40 | func _store_i16(buf: *u8, i: i64, v: i64) -> i64 |
| 51 | func gen_tri(buf: *u8, n: i64, amp: i64, dc: i64) -> i64 |
| 64 | func gen_sq(buf: *u8, n: i64, amp: i64) -> i64 |
| 75 | func grade1(logfd: i64, label: *u8, pcm: *u8, out: *i64) -> i64 |
| 87 | func main() -> i64 |