Skip to content

8D-SonKu M4: room-aware musical FDN A/B and GUI integration gate - #651

Closed
masarray wants to merge 14 commits into
feat/8d-sonku-v4-distance-spaces-20261113from
feat/8d-sonku-m4-room-aware-gui-contract-20261113
Closed

masarray wants to merge 14 commits into
feat/8d-sonku-v4-distance-spaces-20261113from
feat/8d-sonku-m4-room-aware-gui-contract-20261113

Conversation

@masarray

@masarray masarray commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

8D-SonKu M4 — musical room-size ambience, prepared on control side

Stack: #606 (native editor) → #629 (accepted Square+early reflections + base FDN) → #643 (independent room/radius geometry) → this PR. All remain draft and out of public main.

Implemented

  • Extended fixed 8-line Hadamard FDN with Spacious Chamber (~1.65 s RT60/5.4 kHz damping) and Large Auditorium (~2.2 s/4.7 kHz). Kept original Studio Glue/Airy formulas and accepted Square HRIR/ER unchanged.
  • New musicalAmbienceForRoom(width,depth,distance) deterministic safe control-side mapping to stage presets and conservative wet values. Invalid dimensions return OFF, does not infer full physical 3D room impulse responses.
  • Added two 20 s 48 kHz stereo WAVs with the identical source, radius, orbit, and geometrical ER as respective M3 dry counterparts. No change to V1–V4 A/B WAVs.
  • Added finite/decay/bounds/preset and WAV matched-pair regression checks.
  • All this remains OFFLINE only. No premature live parameter publication, no realtime exponential work, no new thread, no allocations in process(), no JS-generated audio.

Native GUI milestone delivered on follow-up commits

  • Room and Ambience are now native typed SonKuSpatialCore::Settings floats (0..1, both OFF by default); enabling room chooses the listener-approved 7.2 × 7.2 m Square geometry, not the previous rectangular default.
  • SonKuEarlyReflections and FDN setAmount no longer clear ~64 KiB/~128 KiB rings on PCM activation. Instead an O(1) rearm masks reads to prior ring generations and resets only bounded filter/tap state; regression tests exercise bypass/re-activation and early-tail identity.
  • Existing SonKuSpatialProcessor SPSC edit/completion + native nativeSonKuSet dispatcher now carries both SPACE amounts; nativeSonKuSnapshot schema v2 readback and .smix SonKu state v2 writes remain able to restore v1's 30-byte blob. No new device callback, audio thread, WebAudio, or parallel PCM authority.
  • Compact two-slider SPACE section added to approved SonKu WebView GUI with existing QUEUED/APPLIED/READBACK transaction. Browser Chromium FAT exercises 45% reflections and 25% ambience with emulated native ACK/readback; actual physical ASIO still needs FAT.
  • Larger-room M4 FDN profiles are offline-only A/B for now. Live GUI currently controls only approved Square early reflections and the existing Studio Glue late tail; do not claim larger room geometry selection or dynamic room profile morphing is shipped.
  • Exact SHA 1965575939708ea7b702d09760397c3bca3a1ee0: Fast Native PASS, Fast UI PASS, full scoped SonKu Chromium + C++ audio WAV PASS; run 43388262449. Listening ZIP and GUI screenshots.

Release gates

Exact-SHA fast PCM, deterministic WAV/audio, Chromium, scoped Windows JUCE, followed by one final Windows installer + physical ASIO/multi-instance p99/XRun and headphone listening qualification. Do not ship a live room effect from an offline green CI alone.

Research: Jot & Chaigne 1991 unitary feedback delay networks; Steam Audio distinguishes distance attenuation, reflections and environmental reverb. Original implementation, no vendor source copied.

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

Deploying arsonmix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1965575
Status: ✅  Deploy successful!
Preview URL: https://48ab8cde.arsonmix.pages.dev
Branch Preview URL: https://feat-8d-sonku-m4-room-aware.arsonmix.pages.dev

View logs

Copy link
Copy Markdown
Owner Author

MILESTONE A — archival closure WITHOUT MERGING. This older P0/P6/M4 SonKu native-space/room/stereo experimental PR is now historical research. The actual owner-listening-approved P9.9 production integration is merged #733; this earlier research chain is not a product release or safe merge source. Source branch: feat/8d-sonku-m4-room-aware-gui-contract-20261113 at exact original SHA 1965575939708ea7b702d09760397c3bca3a1ee0, original base feat/8d-sonku-v4-distance-spaces-20261113. Ledger: docs/governance/MILESTONE_A_PR_BRANCH_RECONCILIATION_20261117.md on chore/milestone-a-pr-history-20261117. All original code/refs/checkpoints are preserved. No branch deletion, code merge, GUI/PCM change, or release mutation. A new scoped task may reopen it after validation.

@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