code wiki / (root) / nx_audio_fx.nx

nx_audio_fx.nx

buildroot/runtime/nx_audio_fx.nx

1109 B34 linesdepth 3pulls 3 transitivereach 13 importersview sourcekind librarytopic audio
docsdependenciesstructsconstsfunctions

about

nx_audio_fx.nx -- SOVEREIGN AUDIO ENGINE rung R5: effects (filter + delay). fx_lowpass: one-pole low-pass (y += alpha*(x-y), Q8 alpha; 256 = passthrough) -- smooths high frequencies / harshness, the basis of tone shaping. fx_delay: feedback echo (out[n] += fb*out[n-delay]) -- the basis of echo/reverb and a space sense. Pure integer recursion, reuses ae_clamp (R0). license_tier: ORIGINAL.

dependencies 2 imports · 5 importers

nx_syscalls.nx nx_audio_mix.nx nx_audio_fx.nx nx_audio_fx_test.nx nx_audio_sfx.nx nx_audio_sfx_test.nx nx_audio_sfx_web.nx nx_audio_sfx_web_test.nx

imports: nx_syscalls.nxnx_audio_mix.nx

imported by: nx_audio_fx_test.nxnx_audio_sfx.nxnx_audio_sfx_test.nxnx_audio_sfx_web.nxnx_audio_sfx_web_test.nx

structs

none

consts

none

functions

13func fx_lowpass(buf: *i64, n: i64, alpha: i64) -> i64
called by 2: mainsfx_explosion calls 1: ae_clamp
26func fx_delay(buf: *i64, n: i64, delay: i64, fb: i64) -> i64
called by 1: main calls 1: ae_clamp