code wiki / (root) / nx_audio_song_test.nx

nx_audio_song_test.nx

buildroot/runtime/nx_audio_song_test.nx

2820 B70 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic audio
docsdependenciesstructsconstsfunctions

about

nx_audio_song_test.nx -- MUSICAL artifact: render a C-major arpeggio (3 sine notes, each ADSR-shaped) to /tmp/song.wav. Composes synth(R3b) + wav(R4) into real music -- the live-testable proof the engine makes tones, not just a buzz. expect_exit: 0.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_audio_mix.nx nx_audio_synth.nx nx_audio_wav.nx nx_audio_song_test.nx

imports: nx_syscalls.nxnx_audio_mix.nxnx_audio_synth.nxnx_audio_wav.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 w sys_write osc_sine freq_of adsr_apply ae_clamp wav_render_stereo wav_put_str wav_put_u32 wav_put_u16 wav_put_i16 wav_save sys_openat_wr sys_write ↻ sys_close wn sys_mmap ↻ sys_write ↻ chk w ↻

structs

none

consts

none

functions

11func w(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 2: chkmain calls 1: sys_write
12func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
27func freq_of(k: i64) -> i64
called by 1: main
33func main() -> i64