nx_synthesis_engine.nx
buildroot/runtime/nx_synthesis_engine.nx
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
imports: nx_syscalls.nxnx_perceptual_profile.nxnx_transducer_characterizer.nx
imported by: nobody (leaf or entry point)
structs
| 93 | struct NxSynGranularParams |
consts
| 68 | const NX_SYN_OK: i64 = 0 |
| 69 | const NX_SYN_FAIL_BAD_STIMULUS: i64 = 1 |
| 70 | const NX_SYN_FAIL_BAD_DOMAIN: i64 = 2 |
| 71 | const NX_SYN_FAIL_BAD_PROFILE: i64 = 3 |
| 72 | const NX_SYN_FAIL_BUFFER_TOO_SMALL: i64 = 4 |
| 73 | const NX_SYN_FAIL_DEPENDENCY_MISSING: i64 = 5 // PARTIAL_WIRED default |
| 74 | const NX_SYN_FAIL_SOURCE_SAMPLE_MISSING: i64 = 6 // granular synth needs source |
functions
| 76 | func nx_syn_verdict_name(v: i64) -> *u8 |
| 112 | func nx_synthesis_generate_stimulus(stimulus: i64, sample_rate_hz: i64, |
| 131 | func nx_synthesis_generate_prey(target_profile: i64, calls 1: nx_perceptual_profile_is_valid |
| 146 | func nx_synthesis_default_granular_params_for_profile(profile: i64, calls 1: nx_perceptual_profile_is_valid |
| 158 | func nx_synthesis_generate_test_pattern(width_px: i64, height_px: i64, |
| 175 | func nx_synthesis_get_last_verdict() -> i64 |