code wiki / (root) / nx_synthesis_engine.nx

nx_synthesis_engine.nx

buildroot/runtime/nx_synthesis_engine.nx

9260 B177 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_synthesis_engine.nx -- meta-level signal generation across all domains. module: nishi-core.perception.synthesis_engine depends: nishi-core.perception.profile + nishi-core.perception.transducer_characterizer + nishi-core.io.syscalls disk_kb: 5 capability: PERCEPTION wired_status: PARTIAL_WIRED MISSING_CAPABILITIES: - LOG_SWEPT_SINE_GENERATOR (Farina 2000 method; needs nx_sincos or CORDIC for argument-bounded sine; queued) - MLS_SEQUENCE_GENERATOR (linear-feedback shift register; trivial when PARTIAL → FULLY) - PINK_NOISE_GENERATOR (Voss-McCartney algorithm or filtered white) - GRANULAR_SYNTH (overlap-add of small grains from source sample with pitch/duration/position jitter; THE primitive that makes prey-spec audio never repeat for habituation defeat) - BREATH_DRIVEN_RNG (low-frequency modulator that mimics biological breath cycles; drives grain-rate and amplitude envelope of prey vocalizations) - VISUAL_TEST_PATTERN (gradient, checkerboard, color bars for visual transducer characterization) - GAS_BOLUS_PROFILE (controlled-concentration injection profile for scent cartridge characterization) license_tier: PUBLIC_NISHI_SUBSTRATE genealogy_id: feedback-substrate-primitives-meta-not-one-off_2026 + feedback-multi-species-perceptual-substrate-not-anthropocentric_2026 + farina_2000_swept_sine_room_acoustics_aes + schroeder_1979_mls_measurement + voss_1976_one_over_f_noise + roads_1988_granular_synthesis + feedback-build-intelligence-never-strip-features Per cardinals [[feedback-substrate-primitives-meta-not-one-off]] and [[feedback-multi-species-perceptual-substrate-not-anthropocentric]]: THIS primitive generates any signal needed by the substrate — stimulus signals for nx_transducer_characterizer, prey-spec audio for the dog toy, calming audio for separation anxiety, deterrence signals for humane pest

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_perceptual_profile.nx nx_transducer_characterizer.nx nx_synthesis_engine.nx

imports: nx_syscalls.nxnx_perceptual_profile.nxnx_transducer_characterizer.nx

imported by: nobody (leaf or entry point)

structs

93struct NxSynGranularParams

consts

68const NX_SYN_OK: i64 = 0
69const NX_SYN_FAIL_BAD_STIMULUS: i64 = 1
70const NX_SYN_FAIL_BAD_DOMAIN: i64 = 2
71const NX_SYN_FAIL_BAD_PROFILE: i64 = 3
72const NX_SYN_FAIL_BUFFER_TOO_SMALL: i64 = 4
73const NX_SYN_FAIL_DEPENDENCY_MISSING: i64 = 5 // PARTIAL_WIRED default
74const NX_SYN_FAIL_SOURCE_SAMPLE_MISSING: i64 = 6 // granular synth needs source

functions

76func nx_syn_verdict_name(v: i64) -> *u8
112func nx_synthesis_generate_stimulus(stimulus: i64, sample_rate_hz: i64,
131func nx_synthesis_generate_prey(target_profile: i64,
146func nx_synthesis_default_granular_params_for_profile(profile: i64,
158func nx_synthesis_generate_test_pattern(width_px: i64, height_px: i64,
175func nx_synthesis_get_last_verdict() -> i64