Skip to content

fix(8D-SonKu): true top-rear FRONT/REAR speaker depth and smooth 3D orbit - #669

Merged
masarray merged 5 commits into
integration/sonku-m4-guitar-fx-main-20261113from
feat/sonku-depth-projection-listener-20261113
Nov 13, 2026
Merged

masarray merged 5 commits into
integration/sonku-m4-guitar-fx-main-20261113from
feat/sonku-depth-projection-listener-20261113

Conversation

@masarray

Copy link
Copy Markdown
Owner

Scope: physically consistent 3D visual projection, NOT DSP

The new cyan transparent top-rear listener artwork introduced by #667 changes the camera model. Existing #659/#667 staging has physically inverted painter planes: FRONT (+cos azimuth) is painted above the head; REAR (-cos) behind the back. The two ellipse arcs are similarly reversed. For a viewer behind and above the listener, FRONT is FAR (beyond head) and REAR is NEAR (in front of back).

Implementation

  • Reassign the FRONT/up ring to far, painted behind PNG; REAR/down ring is near, painted over upper back. Correct SVG arc sweep directions to match actual top/rear y projection.
  • Move the listener image down from SVG y=73 to y=90 (unchanged 194×202, original alpha PNG intact) so distant FRONT speakers emerge above the crown instead of disappearing entirely.
  • Every animation frame each of the two actual source nodes gets an independent far/near painter layer from cos(native azimuth), continuous scale (.76→1.16) and opacity (.69→.97), plus restrained depth shadow.
  • Keep the acoustic orbit FRONT 0°, RIGHT +90°, REAR 180°, LEFT -90° unchanged, as well as drag/tether anchor, stereo spread, SPSC typed intent/ACK/readback, smoothing, DSP, HRTF, native PCM, device, .smix and WIRE. No duplicate audio engine or DOM speaker sprites. Cache node/layer/tether references to reduce rAF DOM lookups.
  • Source changes only in existing mixer-native-sonku.js, shared mixer-fx-rack.css, and the two scoped regression files. No new asset, stylesheet owner or public release changes.

Qualification

  • Updated real Chromium smoke: expected arc paths and painter sequence around PNG; four cardinal azimuths; depth/scale/opacity delta; smooth transition at 89°→91° without visual size pop; one speaker front/far while the other rear/near; typed ACK, moving orbit, drag and re-open remain under the existing suite.
  • Fast source assembly guards validate PNG geometry, far/near layer references and single node ownership.
  • Actual CI result pending; do not mistake source assertions for a screenshot/Windows WebView2 field pass. Run scoped Fast UI/Chromium, inspect screenshots at desktop and 390px. Hardware headphones/ASIO remain separate field gate under P0 SonKu M4 integrated release candidate: native SPACE + Guitar FX + WIRE + Windows field qualification #655.

Base: #655 draft integration, not main; do not merge #655 to public main or generate public installer as part of this GUI work.

Reproject upper FRONT rail behind head and lower REAR rail over back; depth-dependent speaker scale/opacity remains continuous at horizons while single native azimuth is untouched. Cache static SVG refs for light 60fps updates. No audio/DSP changes.
…anes

Check far-front/near-rear ring painter sequence, PNG placement, continuous 3D scale and opacity at ±90° crossovers, native azimuth identity and independent split speaker layers. Preserve typed ACK/drag/reopen Chromium paths and pinned PNG alpha provenance.
@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: 56e5bd9
Status: ✅  Deploy successful!
Preview URL: https://1d2dcc0e.arsonmix.pages.dev
Branch Preview URL: https://feat-sonku-depth-projection.arsonmix.pages.dev

View logs

@masarray
masarray marked this pull request as ready for review November 13, 2026 12:17
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T12:17:05.705146Z
We couldn’t complete this review. Comment @codex review to try again.
56e5bd9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@masarray
masarray merged commit c7a660a into integration/sonku-m4-guitar-fx-main-20261113 Nov 13, 2026
9 checks passed
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