Skip to content

SonKu P7: measured KEMAR elevation and six-surface native room research - #679

Closed
masarray wants to merge 9 commits into
feat/sonku-music-integrity-p6-rt-20261114from
feat/sonku-p7-measured-six-surface-20261114
Closed

masarray wants to merge 9 commits into
feat/sonku-music-integrity-p6-rt-20261114from
feat/sonku-p7-measured-six-surface-20261114

Conversation

@masarray

Copy link
Copy Markdown
Owner

Milestone P7 (stacked on #678 → #674)

Measured three-dimensional early-reflection physics, not a new WebAudio engine or fake 3D UI.

  • Original MIT KEMAR 14 elevation sets −40° to +90°, 368 measurements per sample rate (44.1/48 kHz). Correct nonuniform azimuth grid and measured ear symmetry. Reuse old exact 0° horizontal bank; no dearVR proprietary data/code.
  • Keep existing 4 walls intact; add physically delayed floor+ceiling image-source paths using actual measured elevation HRIR (140-tap FIR) on the existing P6 PCM instance. Source is currently at listener height until true direct XYZ HRTF is implemented. Clamp elevations below measured −40°.
  • Research compile only: -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 in native offline qualification. Production and P6 JUCE default compile out the extra tables and DSP paths completely. Native FX catalog, ACK, .smix schema, GUI, WIRE and installer remain unchanged.
  • Test physical arrival, invalid room geometry, stereo phase integrity, 44.1/48k left/right HRIR, strict early dry prefix, moving azimuth and 64/257 PCM partition parity. Generate 8 lossless 48k/16bit FRONT/REAR matched-source WAVs for P6 four-wall vs P7 six-surface and numeric metrics.
  • Informational Linux same-core CPU 1/2/4 inserts to inform later admission policy; no ASIO hardware or human naturalness claim. Dedicated SonKu native CI only.

Explicit release blockers

Not dearVR-equivalent or production-ready: true elevated direct source HRTF, blind headphone externalization and tonality listening, Windows ASIO p95/p99 and XRUN with multiple inserts, and owner approval are not yet proven. Keep draft, avoid public installer.

Architecture: docs/SONKU_P7_SIX_SURFACE_MEASURED_ELEVATION_20261114.md.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Deploying arsonmix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 57bbc13
Status: ✅  Deploy successful!
Preview URL: https://0adf9a91.arsonmix.pages.dev
Branch Preview URL: https://feat-sonku-p71-xyz-direct-an.arsonmix.pages.dev

View logs

Copy link
Copy Markdown
Owner Author

P7.0 verified implementation and audio evidence — 14 Nov 2026

Head: 57bbc13f32b62eb50c621f2be69a486121ef8b2c; exact GitHub Action #43556642026 SUCCESS; 8 lossless P6-vs-P7 A/B WAVs + original PCM / Goertzel harmonic / ILD / interaural phase JSON + CPU evidence.

Proven code, not cosmetic

  • P7 6-boundary first-order room geometry (original four planar walls unchanged, plus physically delayed FLOOR and CEILING), each reflecting through measured MIT KEMAR vertical HRIR. Original 44.1/48 kHz banks have 14 measured elevations −40° to +90°, each with true variable original azimuth positions; every 0° elevation point aliases the existing horizontal bank. License/provenance updated.
  • Only SONKU_P7_MEASURED_ELEVATION_RESEARCH=1 compiles the 3D dataset and two extra FIR paths. Default/light and P6 native JUCE builds do not contain them. One PCM authority; no extra worker, callback allocation, hidden GUI/plugin identity, .smix, WIRE or product installer change.
  • CI includes the original P0–P6 native regression and 380 KEMAR frequencies as negative controls, new 44.1/48k six-boundary geometry + mirrored ears + PCM partition, and P5 ROOM ON→OFF→ON digital-silence stale-history guard; all PASS.
  • Four original 48k/16bit matched 3-second stereo A/B pairs (FRONT/REAR, spreads 0/60°) prove unchanged causal direct prefix, nonzero floor/ceiling reflection differences and unclipped 3D samples. Goertzel metrics track bass 220Hz, instruments 660/940/3200/4700Hz, ear magnitude, ILD, interaural phase, ≥1.5dB tonal review flags. These are not auditory preference/realism scores.

Measured overhead — release is vetoed

At 48kHz / 128 frames, 1-second shared Linux CI, exact paired input:

  • One P7 instance 60°: p99 516.327µs, 19.4% of nominal 2.667ms callback.
  • Two P7 instances 60°: p99 1034.297µs, 38.8%.
  • Four P7 instances 60°: p99 2068.504µs, 77.6% this runner; previous shared host run #43555803671 measured 2581.884µs / 96.8%. Six-plane costs ~1.4× P6 directional. Do not infer Windows ASIO or field XRUN proof; host variation is evident. No naïve realtime automatic quality change or arbitrary success threshold.

P6 Windows gap independently CLOSED: Windows JUCE CTest #43554868473, exact P6 head ac933017..., opt-in directional ON, 2/2 CTests PASS. Later incremental P7-only updates correctly skip unnecessary Windows compilation via fail-open changed-source classifier.

Still open — no dearVR parity or public enablement

  1. True XYZ direct-source elevation using measured/selectable HRTF and explicit accepted-state/GUI without invalidating .smix.
  2. Significant bounded CPU optimization/admission for multiple concurrent inserts on actual Windows ASIO 64/128/256 with WIRE+VST3 and restart/XRUN evidence.
  3. Perceptual blind loudness-matched headphone testing of front/back externalization, natural timbre, depth/distance and head-locked side-bed artifacts. This requires human ears; numeric WAV checks do NOT close it.

Decision: P7.0 research implementation + scoped native CI complete; production gate remains CLOSED, PR draft stacked on P6 #678 / P0–P5 #674.

Copy link
Copy Markdown
Owner Author

MILESTONE A — archived historical P6/P7 experimental SonKu stage (CLOSED UNMERGED). The original measured-KEMAR/XYZ study remains traceable and is not authorized as a product change. Listening-approved SonKu P9.9 was integrated to main through selective PR #733; older geometry research was never to be bulk-merged. Source branch feat/sonku-p7-measured-six-surface-20261114 and exact SHA 57bbc13f32b62eb50c621f2be69a486121ef8b2c; original PR target feat/sonku-music-integrity-p6-rt-20261114. Registry: docs/governance/MILESTONE_A_PR_BRANCH_RECONCILIATION_20261117.md on chore/milestone-a-pr-history-20261117. This closure does not delete source, alter checkpoint refs, merge code, retune audio, or change release. Reopen only for a separately approved verified feature.

@masarray masarray closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant