From a6402862118ac5cd22e33921962c1517f00a8b8a Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 25 Oct 2026 12:37:00 +0700 Subject: [PATCH 1/4] reconcile(gui+dsp): preserve v0.5 premium mixer, real VU/native VST3 adapter, P2.5 graph and cross-thread progress ledger --- .github/workflows/p1-windows.yml | 7 +- .github/workflows/ui-smoke.yml | 46 + AR-MIX-Live-FX-Host-Standalone-v0.3.html | 876 +++++++++++++++++- README.md | 16 + docs/GITHUB_PAGES_PREVIEW.md | 45 + docs/PAN_AND_BUTTON_UX.md | 54 ++ docs/PROGRESS_RECONCILIATION_2026-10-25.md | 45 + docs/TACTILE_BUTTONS.md | 12 + docs/UI_AUDIT_AND_QA_v0.3.md | 17 + scripts/build_pages.py | 22 + site/.nojekyll | 0 site/index.html | 21 + site/preview/index.html | 32 + tests/button_asset_test.py | 34 + tests/fader_asset_test.py | 27 + tests/native_ui_contract_test.mjs | 8 +- tests/pan_button_asset_test.py | 21 + tests/reconciled_gui_engine_contract_test.mjs | 42 + tests/ui_smoke.py | 326 ++++++- web/app.js | 283 +++++- web/assets/buttons/SO-B-BTN-BLU.png | Bin 0 -> 994 bytes web/assets/buttons/SO-B-BTN-OFF.png | Bin 0 -> 1196 bytes web/assets/buttons/SO-L-BTN-OFF.png | Bin 0 -> 1164 bytes web/assets/buttons/SO-L-BTN-TUR.png | Bin 0 -> 1250 bytes web/assets/buttons/SO-S-BLU.png | Bin 0 -> 801 bytes web/assets/buttons/SO-S-GRE.png | Bin 0 -> 766 bytes web/assets/buttons/SO-S-RED.png | Bin 0 -> 703 bytes web/assets/buttons/SO-S-SLV.png | Bin 0 -> 928 bytes web/assets/buttons/SO-S-YLW.png | Bin 0 -> 913 bytes web/assets/faders/FADER-RED2.png | Bin 0 -> 2721 bytes web/bridge.js | 65 +- web/index.html | 6 +- web/styles.css | 372 ++++++++ 33 files changed, 2246 insertions(+), 131 deletions(-) create mode 100644 .github/workflows/ui-smoke.yml create mode 100644 docs/GITHUB_PAGES_PREVIEW.md create mode 100644 docs/PAN_AND_BUTTON_UX.md create mode 100644 docs/PROGRESS_RECONCILIATION_2026-10-25.md create mode 100644 docs/TACTILE_BUTTONS.md create mode 100644 scripts/build_pages.py create mode 100644 site/.nojekyll create mode 100644 site/index.html create mode 100644 site/preview/index.html create mode 100644 tests/button_asset_test.py create mode 100644 tests/fader_asset_test.py create mode 100644 tests/pan_button_asset_test.py create mode 100644 tests/reconciled_gui_engine_contract_test.mjs create mode 100644 web/assets/buttons/SO-B-BTN-BLU.png create mode 100644 web/assets/buttons/SO-B-BTN-OFF.png create mode 100644 web/assets/buttons/SO-L-BTN-OFF.png create mode 100644 web/assets/buttons/SO-L-BTN-TUR.png create mode 100644 web/assets/buttons/SO-S-BLU.png create mode 100644 web/assets/buttons/SO-S-GRE.png create mode 100644 web/assets/buttons/SO-S-RED.png create mode 100644 web/assets/buttons/SO-S-SLV.png create mode 100644 web/assets/buttons/SO-S-YLW.png create mode 100644 web/assets/faders/FADER-RED2.png diff --git a/.github/workflows/p1-windows.yml b/.github/workflows/p1-windows.yml index 1d49be58a..b752b93a9 100644 --- a/.github/workflows/p1-windows.yml +++ b/.github/workflows/p1-windows.yml @@ -1,7 +1,7 @@ name: Windows Native VST3 Host on: push: - branches: [ main, feature/p1-first-sound-windows, feature/p2-native-vst-catalog-fx-rack, feature/p2-daw-workflow-progress, fix/p2-native-output-monitor-diagnostics, fix/p2-realtime-glitch-telemetry-latest-gui, fix/p2-truthful-meter-pan-fx-toggle, feature/p2-native-state-presets, fix/p2-fabfilter-add-workflow, feature/p25-live-preset-graph-swap ] + branches: [ main, feature/p1-first-sound-windows, feature/p2-native-vst-catalog-fx-rack, feature/p2-daw-workflow-progress, fix/p2-native-output-monitor-diagnostics, fix/p2-realtime-glitch-telemetry-latest-gui, fix/p2-truthful-meter-pan-fx-toggle, feature/p2-native-state-presets, fix/p2-fabfilter-add-workflow, feature/p25-live-preset-graph-swap, integration/p25-gui-engine-reconciled ] pull_request: workflow_dispatch: @@ -37,6 +37,7 @@ jobs: node --test tests/native_preset_contract_test.mjs node --test tests/fx_add_contract_test.mjs node --test tests/live_graph_contract_test.mjs + node --test tests/reconciled_gui_engine_contract_test.mjs - name: Configure Windows x64 shell: pwsh run: > @@ -56,13 +57,13 @@ jobs: Where-Object { $_.Name -like "*AR*Mix*" -and $_.FullName -match 'Release' } | Select-Object -First 1 if (-not $exe) { throw "ARMixConsole EXE not found" } - Copy-Item $exe.FullName "dist/ArSonMix-P2.5-Live-Recall.exe" + Copy-Item $exe.FullName "dist/ArSonMix-P2.5-Reconciled-GUI-Engine.exe" Copy-Item README.md "dist/README.md" "P2 experimental: audio routes automatically; use headphones at low level. Only Channel 1 is native. Other strips are inactive previews." | Out-File -FilePath dist/FIRST_SOUND_README.txt -Encoding utf8 - uses: actions/upload-artifact@v4 with: - name: ArSonMix-P2.5-Live-Recall-Windows-x64 + name: ArSonMix-P2.5-Reconciled-GUI-Engine-Windows-x64 path: dist/ if-no-files-found: error retention-days: 14 diff --git a/.github/workflows/ui-smoke.yml b/.github/workflows/ui-smoke.yml new file mode 100644 index 000000000..570d7dd86 --- /dev/null +++ b/.github/workflows/ui-smoke.yml @@ -0,0 +1,46 @@ +name: UI smoke (Chromium) + +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + frontend: + name: Standalone UI and geometry + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Validate JavaScript syntax + run: node --check web/app.js + - name: Install Chromium testing dependencies + run: | + python -m pip install --upgrade pip + python -m pip install playwright + python -m playwright install --with-deps chromium + - name: Verify original metallic asset and standalone synchronization + run: python tests/fader_asset_test.py + - name: Check switch PNG assets and offline HTML sync + run: python tests/button_asset_test.py + - name: Check PAN and button PNG assets + run: python tests/pan_button_asset_test.py + - name: Run mixer UI smoke tests + run: python tests/ui_smoke.py + - name: Attach visual regression screenshot + if: always() + uses: actions/upload-artifact@v4 + with: + name: ar-mix-fader-smoke + path: | + fader-ui-smoke.png + mixer-design-review.png + mixer-design-review-1440.png + mixer-master-clip-review.png + mixer-pro-view-review.png + if-no-files-found: ignore diff --git a/AR-MIX-Live-FX-Host-Standalone-v0.3.html b/AR-MIX-Live-FX-Host-Standalone-v0.3.html index 31a871bb4..151c38399 100644 --- a/AR-MIX-Live-FX-Host-Standalone-v0.3.html +++ b/AR-MIX-Live-FX-Host-Standalone-v0.3.html @@ -1,16 +1,11 @@ -AR MIX Studio — Live FX Host Concept
-
ARMIX Studio
+
ArSonMix
Session: Live Vocal Studio▾
ASIO / WASAPI
48 kHz
64 samples
@@ -64,13 +621,9 @@
-
- -
+ +
+ diff --git a/README.md b/README.md index 93c21a0d4..789261919 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ +# ArSonMix — Live VST3 Host + +**Current integration candidate (25 October 2026): P2.5 live preset graph + latest v0.5 premium mixer GUI.** Desktop Windows x64 / JUCE 8 / ASIO-WASAPI / VST3. The integrated branch is `integration/p25-gui-engine-reconciled`; **the default `main` is older** and must not be treated as the latest native implementation. Code is experimental until Windows hardware tests pass. + +- [Integrated Windows builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml?query=branch%3Aintegration%2Fp25-gui-engine-reconciled) — download EXE artifact from a successful run. +- [Integration PR](https://github.com/masarray/arsonmix/pulls) and [progress reconciliation ledger](docs/PROGRESS_RECONCILIATION_2026-10-25.md). +- [Premium GUI reference branch](https://github.com/masarray/arsonmix/tree/fix/fader-thumb-symmetry-polish) is archived by branch and imported to the integration source; static browser demo is not a VST host. +- [Latest native engine reference](https://github.com/masarray/arsonmix/tree/feature/p25-live-preset-graph-swap), including real FabFilter/RX compatibility and experimental buffer-boundary preset graph handoff. + +**Actual native status:** Channel 1 stereo path, native VST3 rack/catalog/scan/import, FabFilter and iZotope RX were confirmed to INSERT on user hardware, native VU and PAN, FX bypass, native `.armix` snapshots, experimental Live Recall. **Not yet native:** Channels 2–12, master inserts, master PAN, routing to independent streaming/recording buses, LUFS/true peak. Browser-only session controls are not native persistence. SAVE is muted-only and structure ADD/REMOVE/REORDER still detaches callback. + +## Historical roadmap and previous implementation notes + +The text below documents the development progression. Historical "source-only" or v0.3 statements are superseded by the above current status, not a description of this integration branch. + +--- # AR MIX Studio — Open-Source Live FX Host (v0.3 UI & Architecture) **Status: P1 experimental native Windows first-sound implementation (pending CI/hardware verification) + v0.3 UI demo.** diff --git a/docs/GITHUB_PAGES_PREVIEW.md b/docs/GITHUB_PAGES_PREVIEW.md new file mode 100644 index 000000000..328bc5167 --- /dev/null +++ b/docs/GITHUB_PAGES_PREVIEW.md @@ -0,0 +1,45 @@ +# GitHub Pages GUI preview — production workflow + +**Live and deployed** (GitHub Actions run [40147158731](https://github.com/masarray/arsonmix/actions/runs/40147158731)): + +- Landing: https://masarray.github.io/arsonmix/ +- Interactive mixer review: https://masarray.github.io/arsonmix/preview/ +- Full-screen standalone mixer: https://masarray.github.io/arsonmix/preview/mixer.html +- Current served GUI revision: https://masarray.github.io/arsonmix/preview/build.json + +## Architecture: safe GUI mirror without merging PR + +**The publishing workflow lives in the default branch:** `.github/workflows/pages-publish.yml` in `main`. + +The workflow **checks out `fix/fader-thumb-symmetry-polish`** to build the site, so GitHub Pages environment controls are satisfied without merging unapproved UI code into `main`. + +Whenever UI smoke CI passes for the preview branch, `workflow_run` on `main` automatically triggers production Pages deployment. You may also use **Actions → Publish ArSonMix GUI (main dispatcher) → Run workflow** for manual republishing, running the workflow on **main**. + +The prior branch-local `.github/workflows/pages-preview.yml` was removed because the `github-pages` environment blocked deployment from a non-default-branch workflow (build/upload succeeded but the deployment job could not start). Do not reintroduce a competing branch publisher. + +## Build parity + +`scripts/build_pages.py` copies: +- `site/index.html` → site landing; +- `site/preview/index.html` → review shell; +- `AR-MIX-Live-FX-Host-Standalone-v0.3.html` → `preview/mixer.html`; +- `preview/build.json` → deployed GUI git SHA + source branch. + +The preview shell checks `build.json` every 60 seconds and reloads automatically if a new build is available **and the user is idle**. Otherwise, it displays a reload notice. Click **Reload GUI** to force a refresh; **Full Screen** opens the mixer independently. + +## Local validation + +```bash +python tests/button_asset_test.py +python tests/fader_asset_test.py +python scripts/build_pages.py --out dist-pages +python -m http.server 8000 --directory dist-pages +``` + +Then open `http://localhost:8000/` and `http://localhost:8000/preview/`. + +The browser version is a **GUI prototype** with simulated meters; it does not capture/process real audio. Real engine work is separate. + +## Future promotion + +After final GUI visual approval and merge to `main`, update the checkout ref and trigger branch settings in `.github/workflows/pages-publish.yml` to publish from `main` instead. This is intentionally not done until GUI changes are approved. diff --git a/docs/PAN_AND_BUTTON_UX.md b/docs/PAN_AND_BUTTON_UX.md new file mode 100644 index 000000000..c17c055cb --- /dev/null +++ b/docs/PAN_AND_BUTTON_UX.md @@ -0,0 +1,54 @@ +# ArSonMix – Horizontal PAN and unified tactile controls + +## Design and engineering change (2026-10-25) +- 12 channel PAN knobs replaced with short horizontal rails. Supplied `PAN-SLIDER.png` (18×40 px) is used unchanged, black recessed rail and center mark rendered below it. Existing channel `pan` session property (−100 to 100) and `send('pan', ...)` protocol are unchanged. +- PAN pointer-dragging from the thumb is relative and never jumps on press. Clicking an empty part of the track moves to the requested position. Double click resets to center without opening the channel editor. Keyboard: left/right 1%, shift 10%, Page ±10%, Home C, End R100; wheel 2%. +- Five user-supplied 88×36 machined-metal PNGs are checked into `web/assets/buttons/` unchanged. Matching data URIs are embedded in CSS for offline one-file WebView2 and browser Pages parity. OFF is the neutral baseline; blue=selected navigation/action; turquoise=selected section/output; pink=streaming/talkback/presets; red=record output. Existing channel MUTE/SOLO/HPF physical buttons retain earlier 54×37 artwork. +- Covered: top navigation (MIX, FX RACK, SIGNAL FLOW, SETUP), left/right segment tabs (CHANNELS, FX CHAINS, MASTER, MONITORS, TALKBACK), output selection (Main L/R etc.), scene/snapshot controls, preset controls, FX inserts, plugin categories and selected miscellaneous actions. +- Product name now **ArSonMix** in mixer header/footer, browser title, landing page and preview shell. Internal engineering project code and historical repository filenames are preserved. +- `tests/pan_button_asset_test.py` verifies original PNG dimensions/bytes and offline CSS/JS parity; `tests/ui_smoke.py` verifies PAN pointer/keyboard/center behavior and button backgrounds. Do not merge if Chromium smoke fails. +- The preview is visual UI only; no live device signal routing or audio processing is implied. + +## 2026-10-25 — Context-aware physical-button refinement + +**Root cause:** two appended CSS blocks applied 54x37 and 88x36 PNGs to unrelated elements using a broad `:is()` selector, stretching the hardware artwork and inflating the FX rack and small toggle controls. + +**Fix:** delete those blanket overrides, restore original slim recessed FX inserts and compact icon controls, retain 18x40 PAN slider and existing 31x90 metal faders. New families are applied **per functional region**, and the original button images are checked in under `web/assets/buttons/`: + +| GUI region | Correct art | State | +| --- | --- | --- | +| Dense channel strip MUTE/SOLO/HPF/phase/A-B | SO-S-*.png (49x37) | silver off, red mute, yellow solo, green HPF, blue phase/routing | +| Top navigation + left/right tabs + output destinations | SO-M-BTN-*.png (88x36) | neutral off, blue current view, turquoise selected section/output, red selected record, pink selected streaming | +| Sidebar quick sound presets | SO-L-BTN-*.png (192x36) | dark off, turquoise active | +| Talkback large action | SO-B-BTN-*.png (88x56) | dark off, blue selected | +| FX insert rack | Existing original recessed CSS | No button art; maintain compact signal-chain presentation | +| Tool icons and plugin category controls | Existing original UI | No global material overlay | +| Master identity plate | Existing dedicated plaque styling | Not a button | + +All skins are data-URI embedded from **byte-identical original PNG assets**, so standalone WebView2 and GitHub Pages share one rendering path. No JavaScript audio routing changes. + +**QA:** `tests/button_asset_test.py` checks all nine new families, image sizes/byte integrity and absence of the obsolete global override. `tests/ui_smoke.py` now verifies that four families remain different, FX slots and tool icons do not accidentally inherit large button images, strip switches do not overflow, and review screenshots are captured at 1680x920 and 1440x820. The visual regression artifacts are attached to successful CI runs. + +## 2026-10-25 — Soundcraft reference / Studio One style insert-power refinement + +- **PAN**: added center-origin illuminated green/cyan ribbon between center tick and metallic PAN thumb, positive and negative pan; zero is empty, fully pan is fully illuminated. Existing pan range, no-jump drag and keyboard behavior remain. +- **Master MUTE**: fixed physical printed label `MUTE` regardless of state; red artwork + pressed state mean muted. ARIA pressed persists. +- **FX insert**: occupied rows now have separate **FX name/edit target** and **⏻ power target**. Button never opens browser, and opening name never changes bypass. Gray power = bypassed, luminous aqua = on. No power for empty slot. Existing chain bypass mechanism is the single state; it syncs main strips and full FX Rack, sends existing `chainBypass` bridge event, and immediately persists the UI/session state. This is a demo: audio DSP bypass still requires the native host to consume this event. +- **Persistence**: initial restored session now also restores `bypassed`, `fxParams`, and `masterMute`. +- **Tactile feedback**: increased hover brightness/contrast for hardware controls; darker active press. The 31×90 original fader image, exact translation/geometry, and hit zone remain unchanged. +- **Geometry & regression guard**: Chromium checks pan bar left/right/center, 60 compact 25px rack slots, two independent FX targets, synchronized bypass, unchanged MUTE caption and visible hover feedback. +- **Audit priorities**: use color only for meaningful state, keep signal-chain names legible at 1440px, isolate native DSP functions from preview simulation, and prevent per-strip overflow rather than scaling all buttons globally. + +## October 25, 2026 — Studio One-inspired channel/master metering and channel identity + +- PAN: removed neon glow from metallic thumb and green direction ribbon. Pointer interaction snaps to the center when the requested value is within ±6 units; keyboard retains fine one-unit increments. PAN is still -100..+100 and double-click centers. +- Fader/button hover: reduced previous exaggerated contrast and brightness, keeping recognizably physical pressed states. +- Insert rack: removed occupied slot `◉` graphic entirely; empty slots have one `+` glyph and caption `ADD FX` (no repeated plus). +- Channel identity: clicking the bottom colored identity plate opens a compact console-themed editor: channel name (26 characters maximum), twelve icon choices, twelve semantic strip colors. Identity is saved in UI session and snapshots and restored on reload. Values are escaped/whitelisted; cancelling discards changes. +- Focused channel: border follows selected or interacted-with strip from channel header to bottom plate without changing fader geometry. +- Input meters: industrial tick marks, red peak hold line (1.6 s), 8px raised hardware-style clip candy LED with latched red state and per-channel click-to-clear. +- Master strip: own 5-slot UI FX chain (4 visible in Easy), dedicated enable/bypass buttons, dual L/R meters each with individual clip and peak, all-clip reset, exact original FADER-RED2.png (31×90), and output telemetry. Master fader's start is vertically aligned to input faders in both Easy/Pro UI modes. +- Engineering integrity: source red master PNG git blob SHA `2369e1b9002522600948909246918e57880da1ed` is checked in. A previous one-character base64 corruption caused the image to be invisible; tests now verify byte-exact embedding and `Image.decode()` of 31×90 in Chromium. +- The preview's `LUFS-I`, `dBTP`, and `PEAK` displays are visibly marked `SIM`/`DEMO · NOT CALIBRATED`. They are **not** real BS.1770 LUFS or oversampled true-peak measurements; those must be sourced from DSP/native audio metering before the product claims compliance. +- Browser FX power (including master) is a GUI state/bridge event only; real VST3 bypass requires the native host to consume and apply the changes safely at audio-buffer boundaries. +- QA: 12 input strips, 13 faders total, dual master meters, 14 clip LEDs, original master PNG decode, channel rename/icon/color persistence, FX bypass, no layout overflow at 1680×920 and 1440×820, plus aligned Easy/Pro fader-start geometry. diff --git a/docs/PROGRESS_RECONCILIATION_2026-10-25.md b/docs/PROGRESS_RECONCILIATION_2026-10-25.md new file mode 100644 index 000000000..401dcfef8 --- /dev/null +++ b/docs/PROGRESS_RECONCILIATION_2026-10-25.md @@ -0,0 +1,45 @@ +# ArSonMix — Cross-thread reconciliation ledger (2026-10-25) + +This is the authoritative **development baseline** for the integration candidate, not evidence of hardware qualification. + +## Canonical integration +- Branch: `integration/p25-gui-engine-reconciled`. +- **Engine ancestor**: `feature/p25-live-preset-graph-swap` @ `7a769105595aeaa2f8d8e3a549143426fdba5eae`, Windows CI GREEN run [40164992415](https://github.com/masarray/arsonmix/actions/runs/40164992415). +- **GUI visual source**: `fix/fader-thumb-symmetry-polish` @ `7d4892036caadd97c79e03321e8f11de5d3d3dcf`. Restored latest channel identity editor, dedicated master strip inside the mixer, tactile hardware PNGs, clip/peak and refined PAN/faders, premium dark metal controls. +- **UI-to-engine adapter**: `web/bridge.js` inherited from P2.5 and adapted to current GUI DOM. ONLY real Channel 1/real Master measurements control the native meters. No sinusoidal demo meters run in JUCE. +- **No destructive cherry-pick**: neither GUI branch nor historic PRs were overwritten. All original branches/PRs remain readable. The integration source incorporates visual code on top of native engine with contract tests. + +## Proven / supported vs incomplete +| Capability | Current integrated claim | Evidence/limit | +|---|---|---| +| GUI premium | Latest GUI branch imported into Windows host | Browser visual QA required on integration PR | +| Channel identity (name/icon/color) | Interactive UI, saved as GUI/session state | Not authoritative for audio routing | +| VU native | Ch1 input and independent Master L/R sourced from DSP | Channel 2–12 fake activity disabled | +| VST3 FabFilter/iZotope RX insert | Confirmed by user on previous P2.4.1 Windows EXE | Retest integrated EXE | +| VST3 catalog, add/open/editor/bypass | C++ native Channel 1 | Others GUI placeholders | +| `.armix` real plugin state | Native ZIP binary-state, validation and restore | Runtime vendor round-trip needs hardware test | +| P2.5 recall during output active | Prepared graph, callback-boundary fade and deferred retirement | No dual-graph crossfade; audio dips around transition; not qualified for performance | +| ADD/REMOVE/REORDER FX | Real Channel 1; callback may detach and briefly stop | Not yet live-safe | +| MASTER FX and master PAN | Attractive GUI **preview only**; controls disabled in native shell | Master fader/MUTE and true L/R meter remain native | +| Full mixer/streaming/record routing | Not implemented | Next phase P2.6 | +| 30–60 minute soak/xrun/third-party crash sandbox | Not completed | Release blocker | + +## Branch and PR ancestry (DO NOT DELETE) +The following PR stack retains all historical engineering changes, and **must not be blindly merged in arbitrary order**: +1. [PR #1](https://github.com/masarray/arsonmix/pull/1) P1 native first sound +2. [PR #3](https://github.com/masarray/arsonmix/pull/3) P2 VST3 catalog and native FX +3. [PR #4](https://github.com/masarray/arsonmix/pull/4) DAW selection/scan progress +4. [PR #5](https://github.com/masarray/arsonmix/pull/5) output/diagnostics +5. [PR #6](https://github.com/masarray/arsonmix/pull/6) realtime telemetry/auto route +6. [PR #7](https://github.com/masarray/arsonmix/pull/7) true VU, PAN, bypass +7. [PR #8](https://github.com/masarray/arsonmix/pull/8) My Sounds native binary state +8. [PR #9](https://github.com/masarray/arsonmix/pull/9) FabFilter/RX VST3 bus compatibility +9. [PR #10](https://github.com/masarray/arsonmix/pull/10) live graph handoff. +GUI [PR #2](https://github.com/masarray/arsonmix/pull/2) is an **independent visual branch**, incorporated selectively here. +Original developer source, assets, standalone preview, docs and QA tests remain in their originating branches. + +## Safety and release policy +- Keep `main` unchanged until **both** Windows native CI and Chromium visual smoke are GREEN, plus real hardware trial has confirmed VST3 insert/edit/bypass and preset recall. +- Experimental release is not "stable", no IEC/audio standards certification, no guaranteed glitch-free audio. +- One canonical artifact per promoted revision; no duplicate unverified EXE claiming latest stable. +- Next milestone after reconciled acceptance: P2.5.2 live-safe ADD/REMOVE/REORDER, worker preparation and safe device lifecycle; then P2.6 real multichannel routing, then P2.7 full mixer sessions. diff --git a/docs/TACTILE_BUTTONS.md b/docs/TACTILE_BUTTONS.md new file mode 100644 index 000000000..ac51013e8 --- /dev/null +++ b/docs/TACTILE_BUTTONS.md @@ -0,0 +1,12 @@ +# Physical console button artwork + +Original assets: +- `web/assets/buttons/SO-M-SLV.png`: inactive/neutral silver +- `web/assets/buttons/SO-M-RED.png`: MUTE active and MASTER MUTE active +- `web/assets/buttons/SO-M-GRE.png`: SOLO active, HPF/Ø enabled and A/B routing enabled + +The image contains the bevel and edge shadow; CSS provides live label text, keyboard focus, pointer hover, pressed position and reduced-motion support. All assets are 54×37 RGBA. They are embedded in `web/styles.css` as byte-identical data URLs so the one-file HTML trial and the JUCE/WebView2 binary need no network or external asset dependencies. + +The supplied `OFF-ON.png` / `OFF-OFF.png` images have the text OFF baked into the image and **are not used for controls whose ON state needs to be legible**, to avoid misleading users. They can be treated as style references. + +Default dark-silver = up; stateful red/green = depressed by 1px; pointer press depresses 3px. Do not simulate depth with chunky cards or CSS-only candy gradients. diff --git a/docs/UI_AUDIT_AND_QA_v0.3.md b/docs/UI_AUDIT_AND_QA_v0.3.md index 053caa2c7..923ce6e03 100644 --- a/docs/UI_AUDIT_AND_QA_v0.3.md +++ b/docs/UI_AUDIT_AND_QA_v0.3.md @@ -31,3 +31,20 @@ **Not yet verified:** Windows 125/150% display scaling; native WebView2 shell compilation; real VST3 scan; FX plugin state persistence; real audio capture/output; buffer underrun / callback budgets / device RTL; production memory leak analysis. Treat these as explicit release gates rather than claimed capabilities. - Responsive QA: at 1366×768, 1920×1080, 2560×1440, measured 12 strips, **zero fader head geometry clips** and **zero JavaScript page errors**. Screenshots were inspected. + +## 2026-10-25: Mirror-symmetric fader polish + +- Root cause: original 45px head used a fixed 19px centerline. An overriding 39px height and biased shadow left the cap unbalanced, while an obsolete travel calculation remained. +- Repair: single 29×42px metallic head, matching 5px top/bottom corners and centered black stripe; the lower grip is a true Y-mirror of the upper grip. Same CSS for channel and master. +- Keep the cross-browser 25px safe-travel clamp. Add subtle hover and keyboard focus highlights; remove contradictory height/position declarations. +- UX: vertical ARIA sliders, live master value, 0.5dB arrow steps, 5dB Page steps, Home (-60dB) and End (+10dB). +- Automated Playwright smoke includes cap dimension, pseudo-layer symmetry, boundary clipping at initial positions, keyboard endpoints and existing FX workflows. Only the standalone component has been visually rendered in Linux Chromium during this patch; run the complete smoke suite before release. + +## 2026-10-25 — Image-backed rugged silver fader (supersedes flat CSS v0.3) + +- **Canonical reference:** `web/assets/fader-silver2.png` (user-supplied Gambar 3, 31×90 RGBA, SHA-256 `0f45fe5aebc8db7b65c4163ffad083cbe3965d59cde7056add94812ac067a899`). +- The original PNG preserves curved machined-metal edge shading, fine ridges and soft downcast shadow. The embedded CSS data URI uses exactly the same PNG so **standalone HTML, normal browser CSS and JUCE WebView2 never depend on external file loading**; the canonical PNG remains replaceable. +- On-image black horizontal center mark is **pixel y=35**, CSS `translateY(-35px)` pins that mark to the fader dB coordinate. The body ends near y=65; the transparent falloff continues below without changing the controlled value. Keep the visual clipping assertions limited to the actual metal body (not its cast shadow). +- Pointer-down on an existing cap now retains the current gain; drag is relative to the starting value. Track click still jumps as before. Keyboard and ARIA controls retained. +- QA: `python tests/fader_asset_test.py` checks byte-exact PNG, CSS and offline trial synchronization. Chromium `tests/ui_smoke.py` covers asset decode, all 13 cap dimensions, body clipping, no-jump drag, keyboard endpoints, plugin rack operations and screenshot artifact. +- **Known:** Original user asset is only 31px wide. It is deliberately shown at approximately original pixel dimensions, not artificially upscaled. Replacing the original source with a high-DPI recreation may be considered later if 150%/200% scaling reveals softness. diff --git a/scripts/build_pages.py b/scripts/build_pages.py new file mode 100644 index 000000000..533348262 --- /dev/null +++ b/scripts/build_pages.py @@ -0,0 +1,22 @@ +"""Build public Pages landing and interactive console from canonical standalone HTML.""" +from pathlib import Path +import argparse,os,json,shutil,subprocess +ROOT=Path(__file__).resolve().parents[1] +p=argparse.ArgumentParser() +p.add_argument('--out',default='dist-pages') +p.add_argument('--sha',default=os.environ.get('GITHUB_SHA','local')) +p.add_argument('--branch',default=os.environ.get('GITHUB_REF_NAME','local')) +args=p.parse_args() +dst=Path(args.out).resolve() +if dst==ROOT or dst==ROOT/'site': raise SystemExit('unsafe output path') +dst.mkdir(parents=True,exist_ok=True) +shutil.copytree(ROOT/'site',dst,dirs_exist_ok=True) +source=ROOT/'AR-MIX-Live-FX-Host-Standalone-v0.3.html' +html=source.read_text(encoding='utf-8') +assert ' +
+
LIVE AUDIO · VST FX · DIGITAL CONSOLE

The next-generation live mixing workspace.

A precision-focused digital mixer UI for live vocals, karaoke, and streaming. Explore channel strips, real console controls, effect chains and professional signal flow in the interactive browser prototype.

GUI preview availableWindows-native engine in developmentOpen source
+
ArSonMix48 kHz  |  DIGITAL MIXER
+
+
+
+
+
+
+
+
+
Metal faders · Tactile buttons · Interactive FX chain
+
EXPLORE THE CONSOLE

Built around a practical live workflow

Open full console →
⌁

Professional mixer surface

Channel faders, pan, routing, meters, and tactile MUTE/SOLO/HPF states inspired by physical consoles.

≋

FX chain workflow

Explore racks, plugin browser and signal flow. The browser version is a UI prototype, not a real-time audio engine.

◉

Continuously updated GUI

The preview is rebuilt from the current development HTML by GitHub Actions. Check version and reload from the preview header.

+
\ No newline at end of file diff --git a/site/preview/index.html b/site/preview/index.html new file mode 100644 index 000000000..751a01dfd --- /dev/null +++ b/site/preview/index.html @@ -0,0 +1,32 @@ + + +ArSonMix — Live GUI Preview + + + + + \ No newline at end of file diff --git a/tests/button_asset_test.py b/tests/button_asset_test.py new file mode 100644 index 000000000..1a6fbe8ca --- /dev/null +++ b/tests/button_asset_test.py @@ -0,0 +1,34 @@ +"""Context-aware ArSonMix button family integrity and CSS design boundary tests.""" +from pathlib import Path +from hashlib import sha256 +import re, base64, struct +root=Path(__file__).resolve().parents[1] +css=(root/'web/styles.css').read_text(encoding='utf-8') +js=(root/'web/app.js').read_text(encoding='utf-8') +offline=(root/'AR-MIX-Live-FX-Host-Standalone-v0.3.html').read_text(encoding='utf-8') + +families={ + 'SO-S-SLV.png':('skin-small-off',(49,37)), + 'SO-S-YLW.png':('skin-small-solo',(49,37)), + 'SO-S-RED.png':('skin-small-mute',(49,37)), + 'SO-S-GRE.png':('skin-small-enable',(49,37)), + 'SO-S-BLU.png':('skin-small-phase',(49,37)), + 'SO-L-BTN-OFF.png':('skin-long-off',(192,36)), + 'SO-L-BTN-TUR.png':('skin-long-on',(192,36)), + 'SO-B-BTN-OFF.png':('skin-large-off',(88,56)), + 'SO-B-BTN-BLU.png':('skin-large-on',(88,56)), +} +for name,(token,expected) in families.items(): + original=(root/'web/assets/buttons'/name).read_bytes() + assert original[:8] == bytes.fromhex('89504e470d0a1a0a'),name + assert struct.unpack('>II',original[16:24]) == expected, name + found=re.search(r'--'+token+r':url\("data:image/png;base64,([A-Za-z0-9+/=]+)"\)', css) + assert found,name+' is missing from the intended CSS family' + assert base64.b64decode(found.group(1)) == original,name+' embedded bytes mismatch' +assert '' in offline, 'Offline CSS differs from modular CSS' +assert '' in offline, 'Offline JS differs from modular JS' +# The previously blanket-styled nav/rack/plugin controls must stay separate. +assert ':is(.nav button,.seg button,.right-button' not in css +assert '.strip .rack .insert,.strip .rack .insert.empty' in css +assert '/* CONTEXTUAL ARSONMIX HARDWARE BUTTONS' in css +print('PASS: all 9 contextual button assets original & correct dimensions, no global override, offline parity') diff --git a/tests/fader_asset_test.py b/tests/fader_asset_test.py new file mode 100644 index 000000000..b8f3a25b1 --- /dev/null +++ b/tests/fader_asset_test.py @@ -0,0 +1,27 @@ +"""Regression guard for original user-supplied metallic fader PNG and offline build.""" +from pathlib import Path +import base64 +import hashlib +import re + +root=Path(__file__).resolve().parents[1] +asset=(root/"web/assets/fader-silver2.png").read_bytes() +css=(root/"web/styles.css").read_text(encoding="utf-8") +js=(root/"web/app.js").read_text(encoding="utf-8") +html=(root/"AR-MIX-Live-FX-Host-Standalone-v0.3.html").read_text(encoding="utf-8") +data=re.search(r'data:image/png;base64,([A-Za-z0-9+/=]+)',css) +assert data, "Embedded metallic asset missing from web/styles.css" +assert base64.b64decode(data.group(1))==asset, "Embedded thumb differs from source PNG" +assert (len(asset),asset[:8])==(2786,b"\x89PNG\r\n\x1a\n") +assert hashlib.sha256(asset).hexdigest()=="0f45fe5aebc8db7b65c4163ffad083cbe3965d59cde7056add94812ac067a899" +master=(root/'web/assets/faders/FADER-RED2.png').read_bytes() +assert hashlib.sha1(b'blob '+str(len(master)).encode()+bytes([0])+master).hexdigest()=='2369e1b9002522600948909246918e57880da1ed' +needle='--master-cap-asset:url("data:image/png;base64,' +assert needle in css, 'Missing master cap CSS source' +master_css=css.split(needle,1)[1].split('")',1)[0] +assert base64.b64decode(master_css)==master, 'Master red cap differs from original user PNG' +assert "" in html, "Offline CSS is stale" +assert "" in html, "Offline JS is stale" +assert ".cap::before,.cap::after{content:none}" in css +assert "translate(-50%,-35px)" in css +print("PASS: supplied 31x90 PNG unchanged, detent anchor, modular and offline assets synced") diff --git a/tests/native_ui_contract_test.mjs b/tests/native_ui_contract_test.mjs index 671917ebf..4172aa07c 100644 --- a/tests/native_ui_contract_test.mjs +++ b/tests/native_ui_contract_test.mjs @@ -17,8 +17,8 @@ test('native app never runs demo sine meters',()=>{ test('native meter reads DSP and hides all 11 visual-only channels',()=>{ assert.match(bridge,/inputLevel=percent\(d\.inputPeak\)/); assert.match(bridge,/outputLevel=percent\(d\.peak\)/); - assert.ok(bridge.includes("masterMeterL:liveOutputLeft")); - assert.ok(bridge.includes("masterMeterR:liveOutputRight")); + assert.ok(bridge.includes('["masterL",liveOutputLeft]')); + assert.ok(bridge.includes('["masterR",liveOutputRight]')); assert.match(bridge,/track\.dataset\.preview="1"/); assert.ok(bridge.includes("meter-fill{opacity:0!important}")); }); @@ -26,10 +26,10 @@ test('quick FX bypass is wired to native slot instead of demo mock',()=>{ assert.match(bridge,/data-native-fx="bypass" data-slot="\$\{i\}"/); assert.match(bridge,/aria-pressed="\$\{!p\.bypass\}"/); assert.match(bridge,/send\("fxBypass",\{slot,value:!state\.chain\[slot\]\?\.bypass\}\)/); - assert.match(engine,/bypassFlags_\[index\]\.store/); + assert.match(engine,/graphOwned_->bypassFlags\[index\]\.store/); }); test('GUI pan event reaches actual callback pan matrix',()=>{ - assert.match(app,/send\('pan',c\.pan,idx\)/); + assert.match(app,/send\(master\?'masterPan':'pan',c\.pan,master\?-1:idx\)/); assert.match(main,/name == "pan" && channel == 1/); assert.match(engine,/StereoPanMatrix::fromNormalized/); }); diff --git a/tests/pan_button_asset_test.py b/tests/pan_button_asset_test.py new file mode 100644 index 000000000..97ea61eb8 --- /dev/null +++ b/tests/pan_button_asset_test.py @@ -0,0 +1,21 @@ +"""Byte-for-byte provenance and embedded asset integrity for PAN + five metal buttons.""" +from pathlib import Path +import base64,re,struct +root=Path(__file__).resolve().parents[1] +css=(root/'web/styles.css').read_text(encoding='utf-8') +js=(root/'web/app.js').read_text(encoding='utf-8') +offline=(root/'AR-MIX-Live-FX-Host-Standalone-v0.3.html').read_text(encoding='utf-8') +sources={'pan/PAN-SLIDER.png':('ar-pan',(18,40)),'buttons/SO-M-BTN-TUR.png':('ar-btn-tur',(88,36)), +'buttons/SO-M-BTN-BLU.png':('ar-btn-blue',(88,36)),'buttons/SO-M-BTN-OFF.png':('ar-btn-off',(88,36)), +'buttons/SO-M-BTN-PNK.png':('ar-btn-pink',(88,36)),'buttons/SO-M-BTN-RED.png':('ar-btn-red',(88,36))} +for name,(token,expected) in sources.items(): + original=(root/'web/assets'/name).read_bytes() + assert original.startswith(bytes.fromhex('89504e470d0a1a0a')) + assert struct.unpack('>II',original[16:24])==expected,name + found=re.search(r'--'+token+r':url\("data:image/png;base64,([A-Za-z0-9+/=]+)"\)',css) + assert found, name+' not embedded' + assert base64.b64decode(found.group(1))==original,name+' changed during embedding' +assert '' in offline, 'CSS modular/standalone mismatch' +assert '' in offline, 'JS modular/standalone mismatch' +assert 'ArSonMix' in offline +print('PASS: 6 original metal assets embedded exactly, PAN/brand and standalone parity') diff --git a/tests/reconciled_gui_engine_contract_test.mjs b/tests/reconciled_gui_engine_contract_test.mjs new file mode 100644 index 000000000..a786689e4 --- /dev/null +++ b/tests/reconciled_gui_engine_contract_test.mjs @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: AGPL-3.0-only +import test from 'node:test'; +import assert from 'node:assert/strict'; +import {readFileSync} from 'node:fs'; +const read=p=>readFileSync(p,'utf8'); +const html=read('web/index.html'),app=read('web/app.js'),css=read('web/styles.css'); +const bridge=read('web/bridge.js'),engine=read('src/LiveAudioEngine.h'); +test('latest desktop GUI is present and actually loads native bridge',()=>{ + assert.match(app,/function openChannelIdentity\(/); + assert.match(app,/id="masterLeft"/); + assert.match(app,/class="fx-power/); + assert.match(app,/data-meter="\$\{key\}"/); + assert.match(html,/id="channelIdentity"/); + assert.match(html,/src="bridge\.js"/); + assert.match(html,/src="monitor\.js"/); + assert.match(css,/master-fx-rack/); +}); +test('native desktop does not run any visual-only sine meter loop',()=>{ + const fn=app.indexOf('function meters(t)'); + assert.ok(fn>0); + const early=app.indexOf('if(window.__JUCE__?.backend?.emitEvent)return;',fn); + const osc=app.indexOf('requestAnimationFrame(meters)',fn); + assert.ok(early>fn&&early{ + assert.match(bridge,/data-master-insert/); + assert.match(bridge,/data-master-power/); + assert.match(bridge,/Master PAN DSP not yet implemented/); + assert.match(bridge,/Only Channel 1|Channel 1/); +}); +test('full engine capabilities preserved',()=>{ + assert.match(engine,/prepareStereoEffectLayout/); + assert.match(engine,/NativePresetArchive/); + assert.match(engine,/handoff_\.stage/); + assert.match(engine,/handoff_\.beginCycle/); + assert.match(bridge,/arMixAddResult/); + assert.match(bridge,/arMixNativePresetLoaded/); +}); diff --git a/tests/ui_smoke.py b/tests/ui_smoke.py index 00d2eff6a..28fd07f6b 100644 --- a/tests/ui_smoke.py +++ b/tests/ui_smoke.py @@ -11,7 +11,329 @@ async def main(): errors=[] page.on("pageerror", lambda e: errors.append(str(e))) await page.set_content((project/"AR-MIX-Live-FX-Host-Standalone-v0.3.html").read_text()) - assert await page.locator(".strip").count()==12 + assert await page.locator(".strip").count()==13 + # All 12 PAN knobs have been replaced by horizontal slider tracks. + assert await page.locator('[data-pan]').count()==13 + assert await page.locator('[data-knob="pan"]').count()==0 + assert ''.join((await page.locator('.brand').inner_text()).split())=='ArSonMix' + for idx in range(12): + p=page.locator(f'[data-pan="{idx}"]') + assert await p.get_attribute('aria-orientation')=='horizontal' + assert await p.locator('.pan-thumb').count()==1 + for selector in ['.nav button.selected','.left-rail .seg button.selected']: + bg=await page.locator(selector).first.evaluate('(x)=>getComputedStyle(x).backgroundImage') + assert 'data:image/png;base64,' in bg, (selector,bg[:110]) + # Visual-architecture regression: four intentionally different hardware + # families, FX slots recessed rather than taking on button-cap artwork. + # GUI target: the master is the 13th sibling, not a floating right rail. + assert await page.locator('#mixer > .strip').count()==13 + assert await page.locator('#mixer > .strip:last-child').get_attribute('id')=='masterLeft' + assert await page.locator('[data-insert="0:5"]').count()==1 + assert await page.locator('[data-master-insert="5"]').count()==1 + assert await page.locator('.strip-controls .knob-label').filter(has_text="PAN").count()==0 + assert await page.locator('.pan-readline').count()==13 + assert await page.locator('#masterLeft .master-controls-zone .master-analysis').count()==1 + # Six real insert slots fit entirely within each FX rack (no cropping). + rack_geometry=await page.evaluate("""() => [...document.querySelectorAll('.strip')].every(strip=>{ + const rack=strip.querySelector('.rack,.master-fx-rack'); + const cells=[...rack.querySelectorAll('.insert-slot,.master-fx-slot')]; + const r=rack.getBoundingClientRect(); + return cells.length===6&&cells.every(c=>{ + const b=c.getBoundingClientRect();return b.top>=r.top-.5 && b.bottom<=r.bottom+.5; + }); + })""") + assert rack_geometry, 'Some of the six FX slots are clipped' + + assert await page.locator('.right-rail,.master-tabs,.head').count()==0 + assert await page.locator('[data-master-output]').count()==0 + assert await page.locator('.master-stereo-badge,.master-route-label').count()==2 + assert await page.locator('[data-clear-all-clips]').count()==1 + architecture=await page.evaluate("""() => { + const bg=s=>getComputedStyle(document.querySelector(s)).backgroundImage; + const rect=s=>{const r=document.querySelector(s).getBoundingClientRect();return {x:r.x,y:r.y,right:r.right,bottom:r.bottom,height:r.height}}; + const main=document.querySelector('[data-strip="0"]'),master=document.querySelector('#masterLeft'); + const overflow=[...document.querySelectorAll('.strip .channel-actions button,.strip .utility-row button')].some(el=>{ + const b=el.getBoundingClientRect(),p=el.closest('.strip').getBoundingClientRect(); + return b.leftp.right+1; + }); + return {nav:bg('.nav button.selected'),small:bg('[data-mute="0"]'), + long:bg('.rail-presets button'),fx:bg('.strip .rack .insert'),chrome:bg('#settingsBtn'), + navBounds:rect('.nav'),mode:rect('#modeToggle'),overflow, + mainHeader:rect('[data-strip="0"] .ch-id'),masterHeader:rect('#masterLeft .ch-id'), + mainBottom:rect('[data-strip="0"] .strip-name'),masterBottom:rect('#masterLeft .strip-name'), + mainFader:rect('[data-strip="0"] .fader-zone'),masterFader:rect('#masterLeft .fader-zone'), + selection:getComputedStyle(main,'::before').borderTopWidth, + masterRows:[...master.children].map(x=>({cls:x.className,height:x.getBoundingClientRect().height}))}; + }""") + assert len({architecture[k] for k in ('nav','small','long')})==3 + assert 'data:image/png;base64' not in architecture['fx'] + assert 'data:image/png;base64' not in architecture['chrome'] + assert not architecture['overflow'] + assert architecture['navBounds']['right']<=architecture['mode']['x']+1 + for key in ('Header','Bottom','Fader'): + assert abs(architecture['main'+key]['y']-architecture['master'+key]['y'])<=2,architecture + assert abs(architecture['mainBottom']['bottom']-architecture['masterBottom']['bottom'])<=2,architecture + assert architecture['selection']=='2px',architecture + await page.screenshot(path=str(project/'mixer-design-review.png'),full_page=True) + # Medium desktop check; channel strips may scroll *inside* workbench. + await page.set_viewport_size({"width":1440,"height":820}) + await page.screenshot(path=str(project/'mixer-design-review-1440.png'),full_page=True) + assert await page.locator('.strip').count()==13 + await page.set_viewport_size({"width":1680,"height":920}) + # Hardware-style PAN illumination must grow from center, both L and R. + pan_fill=page.locator('[data-pan="1"] .pan-fill') + assert await pan_fill.count()==1 + p1=page.locator('[data-pan="1"]') + await p1.focus() + await p1.press('Home') + at_center=await pan_fill.bounding_box() + assert at_center['width']<1,at_center + await p1.press('End') + assert 'drop-shadow' in await p1.locator('.pan-thumb').evaluate('(e)=>getComputedStyle(e).filter') + right_fill=await pan_fill.bounding_box() + assert right_fill['width']>10,right_fill + await p1.press('Home') + await p1.press('ArrowLeft') + left_small=await pan_fill.bounding_box() + assert left_small['width']>0,left_small + for _ in range(20): + await p1.press('Shift+ArrowLeft') + left_fill=await pan_fill.bounding_box() + assert left_fill['width']>10 and left_fill['x']x.classList.contains('is-bypassed')") + assert await page.evaluate('bypassed["0:0"]') is True + assert await page.locator('#pluginModal').is_hidden() + await page.locator('[data-view="FX RACK"]').click() + rack_power=page.locator('[data-chainbypass="0"]') + assert await rack_power.get_attribute('aria-pressed')=='false' + await rack_power.click() + assert await rack_power.get_attribute('aria-pressed')=='true' + await page.locator('[data-view="MIX"]').click() + assert await page.locator('[data-fxpower="0:0"]').get_attribute('aria-pressed')=='true' + assert await page.evaluate('durableSession().bypassed["0:0"]') is False + await page.locator('#masterMute').click() + assert await page.locator('#masterMute').inner_text()=='MUTE' + assert await page.locator('#masterMute').get_attribute('aria-pressed')=='true' + await page.locator('#masterMute').click() + assert await page.locator('#masterMute').inner_text()=='MUTE' + # Hover and active feedback stays visual and does not change native fader geometry. + cap0=page.locator('[data-fader="0"] .cap') + await cap0.hover() + fader_hover=await cap0.evaluate("(e)=>getComputedStyle(e).filter") + assert 'brightness(1.19)' in fader_hover, fader_hover + button=page.locator('[data-mute="0"]') + await button.hover() + await page.wait_for_timeout(150) # Finish 90 ms physical-switch filter transition. + button_hover=await button.evaluate("(e)=>getComputedStyle(e).filter") + assert 'brightness(1.13)' in button_hover,button_hover + # FX power and FX name remain separate inside the 104px channel strip. + assert await page.evaluate("""() => [...document.querySelectorAll('.strip .insert-slot')].every(slot=>{ + const cell=slot.getBoundingClientRect(),strip=slot.closest('.strip').getBoundingClientRect(); + return cell.x>=strip.x-1&&cell.right<=strip.right+1&&cell.height===27 + })"""), 'FX power overflow or slot geometry changed' + # Channel identities are real editable state, not only colored labels. + await page.locator('[data-editstrip="0"]').click() + assert await page.locator('#channelIdentity').is_visible() + await page.locator('#identityName').fill('Vocal Main') + await page.locator('[data-icon-choice="🎙"]').click() + await page.locator('[data-color-choice="#cf6b1e"]').click() + await page.locator('#identitySave').click() + assert await page.locator('#channelIdentity').is_hidden() + assert await page.locator('[data-editstrip="0"] .strip-caption').inner_text()=='Vocal Main' + assert await page.locator('[data-editstrip="0"] .track-icon').inner_text()=='🎙' + assert await page.evaluate('durableSession().channels[0].color')=='#cf6b1e' + # Channel name editor cancel must not overwrite committed changes. + await page.locator('[data-editstrip="0"]').click() + await page.locator('#identityName').fill('This Should Not Persist') + await page.locator('#identityCancel').click() + assert await page.locator('[data-editstrip="0"] .strip-caption').inner_text()=='Vocal Main' + # Master FX chain has its own slots and independent quick power. + assert await page.locator('.master-fx-slot').count()==6 + assert await page.locator('[data-fader="master"] .cap.master-cap').count()==1 + master_fader_debug=await page.locator('[data-fader="master"] .cap.master-cap').evaluate("""(el)=>{ + const c=getComputedStyle(el),p=getComputedStyle(el.parentElement),r=el.getBoundingClientRect(); + return {display:c.display,visibility:c.visibility,opacity:c.opacity,background:c.backgroundImage.slice(0,62), + parent:{height:el.parentElement.getBoundingClientRect().height,width:el.parentElement.getBoundingClientRect().width}, + rect:{x:r.x,y:r.y,width:r.width,height:r.height},top:c.top,zIndex:c.zIndex,pos:el.style.getPropertyValue('--pos'),parentPosition:p.position}; + }""") + assert master_fader_debug['display']!='none' and master_fader_debug['visibility']=='visible' + assert (master_fader_debug['rect']['width'],master_fader_debug['rect']['height'])==(31,90) + assert master_fader_debug['background'].startswith('url("data:image/png;base64,') + decoded=await page.locator('[data-fader="master"] .cap').evaluate("""async el => { + const bg=getComputedStyle(el).backgroundImage; + const image=new Image();image.src=bg.slice(5,-2); + await image.decode(); + return {width:image.naturalWidth,height:image.naturalHeight}; + }""") + assert decoded=={'width':31,'height':90}, 'Master red PNG did not decode' + a=await page.locator('[data-fader="0"]').bounding_box() + m=await page.locator('[data-fader="master"]').bounding_box() + assert abs(a['y']-m['y'])<=2,(a,m) + await page.locator('#modeToggle').click() + pro_a=await page.locator('[data-fader="0"]').bounding_box() + pro_m=await page.locator('[data-fader="master"]').bounding_box() + assert abs(pro_a['y']-pro_m['y'])<=2,(pro_a,pro_m) + await page.screenshot(path=str(project/'mixer-pro-view-review.png'),full_page=True) + await page.locator('#modeToggle').click() + + + + masterPan=page.locator('[data-pan="master"]') + assert await masterPan.get_attribute('aria-valuenow')=='0' + await masterPan.focus() + await masterPan.press('ArrowRight') + assert await masterPan.get_attribute('aria-valuenow')=='1' + await masterPan.press('Home') + assert await masterPan.get_attribute('aria-valuenow')=='0' + assert await page.evaluate('durableSession().masterPan')==0 + assert await page.locator('[data-master-insert="0"]').count()==1 + await page.locator('[data-master-power="0"]').click() + assert await page.locator('[data-master-power="0"]').get_attribute('aria-pressed')=='false' + assert await page.evaluate('durableSession().masterBypassed["0"]') is True + await page.locator('[data-master-power="0"]').click() + assert await page.locator('[data-master-power="0"]').get_attribute('aria-pressed')=='true' + # Master insert selection can open an editor and replace the selected FX. + await page.locator('[data-master-insert="0"]').click() + assert await page.locator('#pluginModal').is_visible() + await page.locator('#closeBrowser').click() + assert await page.locator('#pluginModal').is_hidden() + assert await page.locator('#masterLufs').count()==1 + assert await page.locator('#masterDbtp').count()==1 + assert await page.locator('[data-clip]').count()==14 + assert await page.locator('[data-meter="masterL"]').count()==1 + assert await page.locator('[data-meter="masterR"]').count()==1 + await page.evaluate('updateMeterVisual("masterL",99,performance.now())') + assert await page.locator('[data-clip="masterL"]').evaluate('(e)=>e.classList.contains("latched")') + await page.locator('[data-clip="masterL"]').click() + assert not await page.locator('[data-clip="masterL"]').evaluate('(e)=>e.classList.contains("latched")') + assert not await page.locator('.strip .insert-led').count() + assert await page.locator('.strip .insert-name').first.inner_text() != '' + assert await page.locator('.strip .insert-add-glyph').count()>0 + await page.screenshot(path=str(project/'mixer-master-clip-review.png'),full_page=True) + # Click any passive part of master strip, it must gain the same full border. + await page.locator('#masterLeft .master-ch-id').click() + assert await page.locator('#masterLeft').evaluate('(e)=>e.classList.contains("selected")') + assert await page.locator('[data-strip="0"]').evaluate('(e)=>!e.classList.contains("selected")') + await page.locator('[data-strip="0"] .ch-id').click() + assert await page.locator('#masterLeft').evaluate('(e)=>!e.classList.contains("selected")') + + pan=page.locator('[data-pan="0"]') + await pan.focus() + await pan.press('Home') + assert await pan.get_attribute('aria-valuenow')=='0' + await pan.press('ArrowRight') + assert await pan.get_attribute('aria-valuenow')=='1' + await pan.press('Shift+ArrowLeft') + assert await pan.get_attribute('aria-valuenow')=='-9' + await pan.press('End') + assert await pan.get_attribute('aria-valuenow')=='100' + await pan.press('Home') + bbox=await pan.bounding_box() + await page.mouse.click(bbox['x']+bbox['width']*.76,bbox['y']+20) + assert int(await pan.get_attribute('aria-valuenow'))>0 + await pan.press('Home') + thumb=await pan.locator('.pan-thumb').bounding_box() + x=thumb['x']+thumb['width']/2 + y=thumb['y']+thumb['height']/2 + await page.mouse.move(x,y) + await page.mouse.down() + assert await pan.get_attribute('aria-valuenow')=='0','PAN jumped on grab' + await page.mouse.move(x+14,y,steps=3) + assert int(await pan.get_attribute('aria-valuenow'))>0 + await page.mouse.up() + await pan.dblclick() + assert await pan.get_attribute('aria-valuenow')=='0' + assert not await page.locator('#editor').is_visible(),'PAN double click opened editor' + + # Pixel-perfect state mapping uses original silver/red/green images, not CSS flats. + async def image_for(selector): + return await page.locator(selector).first.evaluate( + '(b) => getComputedStyle(b).backgroundImage') + assert "data:image/png;base64," in await image_for('[data-mute="0"]') + assert await image_for('[data-mute="0"]') == await image_for('[data-solo="0"]') + await page.locator('[data-mute="0"]').click() + assert await page.locator('[data-mute="0"]').get_attribute('aria-pressed') == 'true' + assert await image_for('[data-mute="0"]') != await image_for('[data-solo="0"]') + await page.locator('[data-solo="0"]').click() + assert await page.locator('[data-solo="0"]').get_attribute('aria-pressed') == 'true' + assert await image_for('[data-solo="0"]') != await image_for('[data-mute="0"]') + await page.locator('[data-mute="0"]').click() + await page.locator('[data-solo="0"]').click() + await page.locator('#masterMute').click() + assert await page.locator('#masterMute').get_attribute('aria-pressed') == 'true' + await page.locator('#masterMute').click() + assert await page.locator('#dim,#talkBtn,[data-master-tab]').count()==0 + + # The source image has a real metallic body and a long cast shadow. + # The body must travel inside the track, centered on image y=35. + geometry=await page.evaluate("""async () => { + const slots=[...document.querySelectorAll('[data-fader]')]; + const heads=slots.map(f => { + const c=f.querySelector('.cap'),b=c.getBoundingClientRect(),r=f.getBoundingClientRect(); + const s=getComputedStyle(c); + return {width:b.width,height:b.height,bodyInside:b.top>=r.top-1 && b.top+66<=r.bottom+1, + top:b.top,trackTop:r.top,radius:s.borderRadius, + bg:s.backgroundImage,transform:s.transform}; + }); + const uri=heads[0].bg.match(/data:image\\/png;base64,[a-zA-Z0-9+/=]+/)?.[0]; + if(!uri) throw new Error('Image data URI not found'); + const image=new Image();image.src=uri;await image.decode(); + return {heads,imgW:image.naturalWidth,imgH:image.naturalHeight}; + }""") + assert len(geometry['heads'])==13 + assert (geometry['imgW'],geometry['imgH'])==(31,90), geometry + for g in geometry['heads']: + assert (g['width'],g['height'])==(31,90),g + assert g['bodyInside'],g + assert g['radius']=='0px',g + assert 'matrix(1, 0, 0, 1, -15.5, -35)' in g['transform'],g + for fader in ('0','master'): + ctrl=page.locator(f'[data-fader="{fader}"]') + await ctrl.focus() + await ctrl.press('Home') + assert float(await ctrl.get_attribute('aria-valuenow'))==-60 + await ctrl.press('End') + assert float(await ctrl.get_attribute('aria-valuenow'))==10 + # Repaint at 0 dB, then dragging the head starts without a value jump. + channel=page.locator('[data-fader="0"]') + await channel.focus() + for _ in range(20): + await channel.press('ArrowDown') + original=float(await channel.get_attribute('aria-valuenow')) + cap=channel.locator('.cap') + rect=await cap.bounding_box() + cx=rect['x']+rect['width']/2 + cy=rect['y']+35 + await page.mouse.move(cx,cy) + await page.mouse.down() + assert float(await channel.get_attribute('aria-valuenow'))==original + await page.mouse.move(cx,cy+18,steps=3) + assert float(await channel.get_attribute('aria-valuenow'))baseline,(name,baseline) + await page.mouse.up() + await page.screenshot(path=str(project/'fader-ui-smoke.png'),full_page=True) await page.locator('[data-view="FX RACK"]').click() await page.locator('[data-addplugin]').click() await page.locator("#pluginSearch").fill("de-esser") @@ -31,6 +353,6 @@ async def main(): assert await page.locator('.app.easy').count()==0 assert not errors, errors await browser.close() - print("PASS: 12 strips, plugin chain, editor, reorder, signal flow, setup, easy/pro, no JS errors") + print("PASS: asset PNG for 13 faders, detent alignment, no-jump drag, endpoints, FX chain, no JS errors") if __name__=="__main__":asyncio.run(main()) diff --git a/web/app.js b/web/app.js index a89f5b09d..ebc09db89 100644 --- a/web/app.js +++ b/web/app.js @@ -16,8 +16,8 @@ const raw=[ ['Aux Out','◉',['Limiter'],-11.5,0] ]; const extraNames=['BGV 2','Guitar 2','FX Return 2','Talkback']; -const channels=raw.map((a,i)=>({id:i+1,name:a[0],icon:a[1],inserts:[...a[2]],fader:a[3],pan:a[4],trim:0,mute:false,solo:false,pre:false,hpf:i%4!==0,a:true,b:false})); -let currentChannel=0, view='MIX', sceneIdx=0, timer=0; +const channels=raw.map((a,i)=>({id:i+1,name:a[0],icon:a[1],color:colors[i],inserts:[...a[2]],fader:a[3],pan:a[4],trim:0,mute:false,solo:false,pre:false,hpf:i%4!==0,a:true,b:false})); +let currentChannel=0, masterSelected=false, view='MIX', sceneIdx=0, timer=0; const scenes=['Vocal Live','Karaoke Warm','Clean Voice','Studio Session']; const $=id=>document.getElementById(id); const clamp=(v,min,max)=>Math.max(min,Math.min(max,v)); @@ -25,6 +25,19 @@ const levelToTop=db=>+(clamp((10-db)/70,0,1)*100).toFixed(3); const fmt=db=>db===-Infinity?'−∞':`${db>0?'+':''}${db.toFixed(1)} dB`; // UI side throttling is distinct from the native realtime control plane. const pendingUiParams=new Map();let uiFlushScheduled=false; +const peakHold=Object.create(null),clipLatch=Object.create(null); +function resetClip(key){clipLatch[key]=false;document.querySelector(`[data-clip="${key}"]`)?.classList.remove('latched')} +function syncClipLeds(){document.querySelectorAll('[data-clip]').forEach(e=>e.classList.toggle('latched',!!clipLatch[e.dataset.clip]))} +function updateMeterVisual(key,level,now){ + const el=document.querySelector(`[data-meter="${key}"]`);if(!el)return; + const value=clamp(level,0,99); + el.style.setProperty('--level',value.toFixed(1)+'%'); + const slot=el.closest('.meter'),old=peakHold[key]; + if(!old||value>=old.value||now>=old.until)peakHold[key]={value,until:now+1600}; + const pk=slot?.querySelector('.meter-peak');if(pk)pk.style.bottom=peakHold[key].value.toFixed(1)+'%'; + if(value>=97){clipLatch[key]=true;slot?.querySelector('.clip-led')?.classList.add('latched')} +} + function flushUiParams(){uiFlushScheduled=false;const bridge=window.__JUCE__?.backend;if(bridge?.emitEvent)for(const event of pendingUiParams.values())bridge.emitEvent('arMixParameter',event);pendingUiParams.clear()} function send(param,value,ch=currentChannel){ const event={channel:ch+1,parameter:param,value}; @@ -36,26 +49,100 @@ function send(param,value,ch=currentChannel){ function flash(message){const x=$('toast');x.textContent=message;x.classList.add('show');clearTimeout(timer);timer=setTimeout(()=>x.classList.remove('show'),1500)} function createSide(){ const labels=channels.map(c=>c.name); - $('channelList').innerHTML=labels.map((label,i)=>`
${i+1}${label}
`).join(''); + $('channelList').innerHTML=labels.map((label,i)=>`
${i+1}${label}
`).join(''); $('groupsList').innerHTML=['Drums','Band','Vocals','FX','All Music','All Vocals'].map((x,i)=>`
${i+1}${x}
`).join(''); $('scenesList').innerHTML=scenes.map((x,i)=>`
${x}
`).join(''); $('currentScene').innerHTML=`Snapshot: ${scenes[sceneIdx]}▾`; } function knobMarkup(param,ch,value,label,small=false){let angle=(param==='pan'?value/100*130:value/24*130);return ``} function panText(v){return v===0?'C':(v<0?'L':'R')+' '+Math.abs(v)} -function panMarkup(ch,i){return `
`} -function makeStrip(ch,i){let inserts=ch.inserts.slice(0,4);while(inserts.length<5) inserts.push('');return `
-
${i+1}
${inserts.map((n,j)=>``).join('')}
-
TRIM
dB
${fmt(ch.trim)}
${knobMarkup('trim',i,ch.trim,'Trim')}
PAN
${panMarkup(ch,i)}
${panText(ch.pan)}
+function panMarkup(ch,i){return `
`} + +const channelIcons=['♩','♫','♬','🎙','🎸','🎹','🥁','🎧','▥','◉','◎','⊞']; +const channelPalette=['#1699cd','#b92e41','#cf6b1e','#b28c27','#34a544','#168762','#0e95c9','#066fa9','#7140b5','#b52893','#c32974','#586889']; +let editingChannel=-1,editingColor='',editingIcon=''; +function openChannelIdentity(index){ + editingChannel=index;editingColor=channels[index].color||colors[index];editingIcon=channels[index].icon; + const modal=$('channelIdentity');if(!modal)return; + $('identityIndex').textContent=String(index+1).padStart(2,'0'); + $('identityName').value=channels[index].name; + $('identityIcons').innerHTML=channelIcons.map(icon=>``).join(''); + $('identityColors').innerHTML=channelPalette.map(color=>``).join(''); + modal.classList.remove('hidden');$('identityName').focus();$('identityName').select(); +} +function closeChannelIdentity(){editingChannel=-1;$('channelIdentity')?.classList.add('hidden')} +function commitChannelIdentity(){ + if(editingChannel<0)return;const index=editingChannel; + const name=$('identityName').value.trim().replace(/\s+/g,' ').slice(0,26); + if(!name){flash('Enter a channel name');$('identityName').focus();return} + channels[index].name=name;channels[index].icon=channelIcons.includes(editingIcon)?editingIcon:'♩'; + channels[index].color=channelPalette.includes(editingColor)?editingColor:colors[index]; + closeChannelIdentity();currentChannel=index;renderMixer(); + if(view==='FX RACK')renderRackWorkspace(); + persistSession();flash('Channel identity updated'); +} +function makeStrip(ch,i){let inserts=ch.inserts.slice(0,6);while(inserts.length<6) inserts.push('');return `
+
${i+1}
${inserts.map((n,j)=>`
${n?``:''}
`).join('')}
+
TRIM
dB
${fmt(ch.trim)}
${knobMarkup('trim',i,ch.trim,'Trim')}
${panMarkup(ch,i)}
${panText(ch.pan)}
-
${fmt(ch.fader)}
100−10−20−30−40−60
+
${fmt(ch.fader)}
100−10−20−30−40−60
-
${ch.name}${ch.icon}
+
${safeText(ch.name)}${safeText(ch.icon)}
`} -function renderMixer(){const x=$('mixer'),scroll=x.scrollLeft;x.innerHTML=channels.map(makeStrip).join('');x.scrollLeft=scroll;createSide()} -let masterGain=-.1,masterMute=false,phones=-12; -function renderMaster(){ $('masterLeft').innerHTML=`
${fmt(masterGain)}
${fmt(masterGain)}
100−10−20−30−40−60
MAIN MASTER
`; - $('masterRight').innerHTML=`
OUTPUTS
${['Main L/R','Alt 1','Alt 2','Record','Streaming'].map((s,i)=>``).join('')}
MONITOR SOURCE
${knobMarkup('phones',-1,phones,'Phones')}
${fmt(phones)}
TALKBACK
Latch
To Monitors
PHONES
${fmt(phones)}
`; } +function renderMixer(){ + const x=$('mixer'),scroll=x.scrollLeft; + x.innerHTML=channels.map(makeStrip).join('')+'
'; + renderMaster();x.scrollLeft=scroll;createSide(); +} +let masterGain=-.1,masterPan=0,masterMute=false,phones=-12,masterInserts=['Studio EQ','Brickwall Limiter'],masterBypassed={},pendingMasterSlot=null; +function masterFxRows(){ + const slots=masterInserts.slice(0,6);while(slots.length<6)slots.push(''); + return slots.map((name,i)=>`
+ + ${name?``:''}
`).join(''); +} +function meterUnit(key,label){return `
${label?''+label+'':''}
`} +function renderMaster(){ + const host=$('masterLeft');if(!host)return; + host.innerHTML=`
MASTER
+
${masterFxRows()}
+
+
+
OUTPUT ANALYSIS SIM
+
LUFS-I--
+
dBTP--
+
PEAK--
+
+
+
+
+
${panText(masterPan)}
+
+
+
STEREO MAIN L / R
+
+
+ + STEREO +
+
${fmt(masterGain)}
+
+
100−10−20−30−40−60
+ ${meterUnit('masterL','L')} +
+
+
+ ${meterUnit('masterR','R')} +
+
MAIN L/R
+
MASTER
`; + syncClipLeds(); +} let bands=[{freq:80,gain:2.1,q:1},{freq:300,gain:-3.2,q:1},{freq:2200,gain:-1.5,q:1.2},{freq:7800,gain:3.5,q:.8}];let activeBand=1; const fx=x=>Math.log(x/20)/Math.log(1000)*1000; const fy=y=>250-y*9; @@ -72,28 +159,59 @@ function setView(next){ if(next==='SIGNAL FLOW')renderSignalFlow(); if(next==='SETUP')renderSetup(); } -function updateFader(idx,value){if(idx==='master'){masterGain=clamp(value,-60,10);const host=document.querySelector('[data-fader="master"]');host.querySelector('.cap').style.setProperty('--pos',levelToTop(masterGain)+'%');host.setAttribute('aria-valuenow',masterGain.toFixed(1));$('masterLeft').querySelectorAll('.master-lcd,.master-mid').forEach(e=>e.textContent=fmt(masterGain));send('masterGain',masterGain,-1);return}const ch=channels[+idx];ch.fader=clamp(value,-60,10);const el=document.querySelector(`[data-fader="${idx}"]`);if(el){el.querySelector('.cap').style.setProperty('--pos',levelToTop(ch.fader)+'%');el.setAttribute('aria-valuenow',ch.fader.toFixed(1));document.querySelector(`[data-read="${idx}"]`).textContent=fmt(ch.fader)}send('faderDb',ch.fader,+idx)} -function updatePan(idx,value){const c=channels[idx];c.pan=Math.round(clamp(value,-100,100)); +function updateFader(idx,value){if(idx==='master'){masterGain=clamp(value,-60,10);const host=document.querySelector('[data-fader="master"]');host.querySelector('.cap').style.setProperty('--pos',levelToTop(masterGain)+'%');host.setAttribute('aria-valuenow',masterGain.toFixed(1));$('masterLeft').querySelectorAll('.master-db').forEach(e=>e.textContent=fmt(masterGain));send('masterGain',masterGain,-1);return}const ch=channels[+idx];ch.fader=clamp(value,-60,10);const el=document.querySelector(`[data-fader="${idx}"]`);if(el){el.querySelector('.cap').style.setProperty('--pos',levelToTop(ch.fader)+'%');el.setAttribute('aria-valuenow',ch.fader.toFixed(1));document.querySelector(`[data-read="${idx}"]`).textContent=fmt(ch.fader)}send('faderDb',ch.fader,+idx)} +function updatePan(idx,value,pointer=false){ + const master=idx==='master'; + const actual=master?masterPan:channels[idx].pan; + // A tactile 10% center detent, with 3% release hysteresis during a drag. + const oldCenter=actual===0; + const threshold=pointer?(oldCenter?13:10):0; + const next=Math.round(clamp(pointer&&Math.abs(value)<=threshold?0:value,-100,100)); + if(master)masterPan=next;else channels[idx].pan=next; + const c={pan:next}; const el=document.querySelector(`[data-pan="${idx}"]`); - if(el){el.style.setProperty('--pan-frac',(c.pan+100)/200);el.setAttribute('aria-valuenow',String(c.pan));el.setAttribute('aria-valuetext',panText(c.pan))} + if(el){el.classList.toggle('is-centered',c.pan===0);el.style.setProperty('--pan-frac',(c.pan+100)/200);el.style.setProperty('--pan-left',Math.min(.5,(c.pan+100)/200));el.style.setProperty('--pan-span',Math.abs(c.pan)/200);el.setAttribute('aria-valuenow',String(c.pan));el.setAttribute('aria-valuetext',panText(c.pan))} const display=document.querySelector(`[data-pan-read="${idx}"]`); if(display)display.textContent=panText(c.pan); - send('pan',c.pan,idx); + send(master?'masterPan':'pan',c.pan,master?-1:idx); } function updateKnob(el,value){let idx=+el.dataset.ch,param=el.dataset.knob; if(param==='phones'){phones=clamp(value,-60,10);el.style.setProperty('--angle',phones/24*130+'deg');const rd=document.querySelector('[data-phones-read]');if(rd)rd.textContent=fmt(phones);send('phonesDb',phones,-1);return} const c=channels[idx];if(param==='pan'){updatePan(idx,value)}else{c.trim=+clamp(value,-24,24).toFixed(1);el.style.setProperty('--angle',c.trim/24*130+'deg');document.querySelector(`[data-trim-read="${idx}"]`).textContent=fmt(c.trim);send('trimDb',c.trim,idx)}} +function focusChannel(i){ + if(i<0||i>=channels.length||(i===currentChannel&&!masterSelected))return; + masterSelected=false;currentChannel=i; + document.querySelectorAll('.strip').forEach(strip=>strip.classList.toggle('selected',strip.dataset.strip!==undefined&&+strip.dataset.strip===i)); + document.querySelectorAll('#channelList [data-choose]').forEach(row=>row.classList.toggle('selected',+row.dataset.choose===i)); +} +function focusMaster(){ + if(masterSelected)return; + masterSelected=true; + document.querySelectorAll('.strip').forEach(strip=>strip.classList.toggle('selected',strip.id==='masterLeft')); + document.querySelectorAll('#channelList [data-choose]').forEach(row=>row.classList.remove('selected')); +} function chooseChannel(i){if(i>=channels.length){flash('Additional bank channels are not populated in this UI study');return}currentChannel=i;renderMixer();if(view!=='MIX')renderEditor()} function chooseScene(i){loadSnapshotByIndex((i+scenes.length)%scenes.length)} function toggleState(i,key){channels[i][key]=!channels[i][key];const btn=document.querySelector(`[data-${key}="${i}"]`);if(btn){btn.classList.toggle('active',channels[i][key]);btn.setAttribute('aria-pressed',String(channels[i][key]))}send(key,channels[i][key],i)} -document.addEventListener('click',e=>{const b=e.target.closest('button,[data-choose],[data-scene],[data-editstrip],[data-group]');if(!b)return; +document.addEventListener('click',e=>{const b=e.target.closest('button,[data-choose],[data-scene],[data-editstrip],[data-group]'); + const icon=e.target.closest('[data-icon-choice]'),color=e.target.closest('[data-color-choice]'); + if(icon){editingIcon=icon.dataset.iconChoice;document.querySelectorAll('[data-icon-choice]').forEach(n=>{n.classList.toggle('selected',n===icon);n.setAttribute('aria-pressed',String(n===icon))});return} + if(color){editingColor=color.dataset.colorChoice;document.querySelectorAll('[data-color-choice]').forEach(n=>{n.classList.toggle('selected',n===color);n.setAttribute('aria-pressed',String(n===color))});return} + if(!b){const strip=e.target.closest('[data-strip]');if(strip&&view==='MIX')focusChannel(+strip.dataset.strip);else if(e.target.closest('#masterLeft')&&view==='MIX')focusMaster();return;} + const originStrip=b.closest('[data-strip]'); + if(originStrip&&view==='MIX')focusChannel(+originStrip.dataset.strip);else if(b.closest('#masterLeft')&&view==='MIX')focusMaster(); if(b.dataset.view){setView(b.dataset.view);return}if(b.dataset.choose!==undefined){chooseChannel(+b.dataset.choose);return} if(b.dataset.mute!==undefined){toggleState(+b.dataset.mute,'mute');return}if(b.dataset.solo!==undefined){toggleState(+b.dataset.solo,'solo');return} if(b.dataset.pre!==undefined){let i=+b.dataset.pre;channels[i].pre=!channels[i].pre;b.classList.toggle('active');send('phase',channels[i].pre,i);return} if(b.dataset.hpf!==undefined){let i=+b.dataset.hpf;channels[i].hpf=!channels[i].hpf;b.classList.toggle('active');send('hpf',channels[i].hpf,i);return} if(b.dataset.send!==undefined){let [i,k]=b.dataset.send.split(':');channels[+i][k]=!channels[+i][k];b.classList.toggle('active');send(`send${k.toUpperCase()}`,channels[+i][k],+i);return} + if(b.dataset.masterInsert!==undefined){pendingMasterSlot=+b.dataset.masterInsert;openPluginBrowser(currentChannel,true);return} + if(b.dataset.masterPower!==undefined){const slot=+b.dataset.masterPower;masterBypassed[slot]=!masterBypassed[slot];renderMaster();persistSession();send('masterFxBypass',{slot,bypass:masterBypassed[slot]},-1);return} + if(b.dataset.clip!==undefined){resetClip(b.dataset.clip);return} + if(b.dataset.clearAllClips!==undefined){Object.keys(clipLatch).forEach(resetClip);Object.keys(peakHold).forEach(k=>delete peakHold[k]);return} + if(b.dataset.fxpower!==undefined){const [i,j]=b.dataset.fxpower.split(':').map(Number);setFxBypass(i,j,!bypassed[fxKey(i,j)]);return} if(b.dataset.insert){let [i,j]=b.dataset.insert.split(':').map(Number);currentChannel=i;pendingSlot=j;openPluginBrowser(i);return} - if(b.dataset.editstrip!==undefined){chooseChannel(+b.dataset.editstrip);setView('EDIT');return} + if(b.dataset.editstrip!==undefined){openChannelIdentity(+b.dataset.editstrip);return} if(b.dataset.scene!==undefined){loadSnapshotByIndex(+b.dataset.scene);return} if(b.dataset.preset){applyQuickPreset(b.dataset.preset);return} if(b.dataset.addplugin!==undefined){pendingSlot=channels[currentChannel].inserts.length;openPluginBrowser(currentChannel);return} @@ -106,42 +224,46 @@ document.addEventListener('click',e=>{const b=e.target.closest('button,[data-cho if(b.dataset.category){activeCategory=b.dataset.category;renderPluginBrowser();return} if(b.dataset.group!==undefined){flash('Group selection — interface placeholder');return} if(b.dataset.activeband!==undefined){activeBand=+b.dataset.activeband;renderEditor();return} - if(b.dataset.output!==undefined){document.querySelectorAll('[data-output]').forEach(x=>x.classList.toggle('selected',x===b));flash(`Monitoring output: ${b.dataset.output} (UI only)`);return} - if(b.dataset.masterTab){document.querySelectorAll('[data-master-tab]').forEach(x=>x.classList.toggle('selected',x===b));flash(`${b.textContent} panel selected`);return} if(b.dataset.side){document.querySelectorAll('[data-side]').forEach(x=>x.classList.toggle('selected',x===b));if(b.dataset.side==='fx')setView('FX RACK');else setView('MIX');return} - switch(b.id){case'prevScene':chooseScene(sceneIdx-1);break;case'nextScene':chooseScene(sceneIdx+1);break;case'editorClose':setView('MIX');break;case'masterMute':masterMute=!masterMute;b.textContent=masterMute?'UNMUTE':'MUTE';b.classList.toggle('active',masterMute);b.setAttribute('aria-pressed',String(masterMute));send('masterMute',masterMute,-1);break;case'dim':b.classList.toggle('active');b.setAttribute('aria-pressed',String(b.classList.contains('active')));flash('DIM is a UI preview — audio not connected');break;case'resetEq':bands.forEach(b=>b.gain=0);renderEditor();break;case'addScene':saveMixerSnapshot();break;case'saveFxPreset':saveFxChainPreset();break;case'menuScene':exportSession();break;case'closeBrowser':closePluginBrowser();break;case'closeFxInspector':pluginEditorIndex=null;renderRackWorkspace();break;case'modeToggle':toggleMode();break;case'chooseFxFile':importSession();break;case'browse':importSession();break;case'settingsBtn':setView('SETUP');break;case'talkBtn':b.classList.toggle('selected');flash('Talkback control — audio disconnected');break;default:if(b.id)flash('UI study: '+b.textContent.trim().slice(0,28));} + switch(b.id){case'identityCancel':closeChannelIdentity();break;case'identitySave':commitChannelIdentity();break;case'prevScene':chooseScene(sceneIdx-1);break;case'nextScene':chooseScene(sceneIdx+1);break;case'editorClose':setView('MIX');break;case'masterMute':masterMute=!masterMute;b.textContent='MUTE';b.classList.toggle('active',masterMute);b.setAttribute('aria-pressed',String(masterMute));send('masterMute',masterMute,-1);break;case'resetEq':bands.forEach(b=>b.gain=0);renderEditor();break;case'addScene':saveMixerSnapshot();break;case'saveFxPreset':saveFxChainPreset();break;case'menuScene':exportSession();break;case'closeBrowser':closePluginBrowser();break;case'closeFxInspector':pluginEditorIndex=null;renderRackWorkspace();break;case'modeToggle':toggleMode();break;case'chooseFxFile':importSession();break;case'browse':importSession();break;case'settingsBtn':setView('SETUP');break;default:if(b.id)flash('UI study: '+b.textContent.trim().slice(0,28));} }); -document.addEventListener('dblclick',e=>{const pan=e.target.closest('[data-pan]');if(pan){e.preventDefault();e.stopPropagation();updatePan(+pan.dataset.pan,0)}},true); +document.addEventListener('dblclick',e=>{const pan=e.target.closest('[data-pan]');if(pan){e.preventDefault();e.stopPropagation();updatePan(pan.dataset.pan==='master'?'master':+pan.dataset.pan,0)}},true); document.addEventListener('dblclick',e=>{const st=e.target.closest('[data-strip]');if(st){chooseChannel(+st.dataset.strip);setView('EDIT')}}); let drag=null; document.addEventListener('pointerdown',e=>{const f=e.target.closest('[data-fader]'),p=e.target.closest('[data-pan]'),k=e.target.closest('[data-knob]'),node=e.target.closest('[data-band]');if(!f&&!p&&!k&&!node)return;const el=f||p||k||node; + const strip=e.target.closest('[data-strip]'); + if(strip&&view==='MIX')focusChannel(+strip.dataset.strip);else if(e.target.closest('#masterLeft')&&view==='MIX')focusMaster(); if(f){const idx=f.dataset.fader,fromCap=!!e.target.closest('.cap'); drag={type:'fader',el:f,index:idx,fromCap,startY:e.clientY, startDb:idx==='master'?masterGain:channels[+idx].fader}; - // Grabbing the metallic thumb must never jump the level on pointer-down. - if(!fromCap){const r=f.getBoundingClientRect();const y=clamp((e.clientY-r.top)/r.height,0,1);updateFader(idx,10-y*70)}} - else if(p){const index=+p.dataset.pan,fromThumb=!!e.target.closest('.pan-thumb'); - drag={type:'pan',el:p,index,fromThumb,startX:e.clientX,startPan:channels[index].pan}; - if(!fromThumb){const r=p.getBoundingClientRect();updatePan(index,((e.clientX-r.left-9)/Math.max(1,r.width-18))*200-100)}} + // Motorized-console behavior: the rail is a focus/relative-drag surface. + // Never teleport gain to pointer Y, either on pointerdown or on the first move. + } + else if(p){const index=p.dataset.pan==='master'?'master':+p.dataset.pan,fromThumb=!!e.target.closest('.pan-thumb'); + drag={type:'pan',el:p,index,fromThumb,startX:e.clientX,startPan:index==='master'?masterPan:channels[index].pan}; + if(!fromThumb){const r=p.getBoundingClientRect();updatePan(index,((e.clientX-r.left-9)/Math.max(1,r.width-18))*200-100,true)}} else if(k){drag={type:'knob',el,initial:e.clientY,original:k.dataset.knob==='phones'?phones:channels[+k.dataset.ch][k.dataset.knob],param:k.dataset.knob}} else if(node){drag={type:'eq',el,index:+node.dataset.band};activeBand=drag.index} + if(drag&&(drag.type==='fader'||drag.type==='pan'))drag.el.classList.add('is-dragging'); if(el.setPointerCapture)el.setPointerCapture(e.pointerId);e.preventDefault();}); document.addEventListener('pointermove',e=>{if(!drag)return; if(drag.type==='fader'){const r=drag.el.getBoundingClientRect(); - if(drag.fromCap){const distance=Math.max(24,r.height-66); - updateFader(drag.index,drag.startDb+(drag.startY-e.clientY)*70/distance)} - else updateFader(drag.index,10-clamp((e.clientY-r.top)/r.height,0,1)*70)} + const distance=Math.max(24,r.height-66); + updateFader(drag.index,drag.startDb+(drag.startY-e.clientY)*70/distance)} else if(drag.type==='pan'){const r=drag.el.getBoundingClientRect(),travel=Math.max(1,r.width-18); - updatePan(drag.index,drag.fromThumb?drag.startPan+(e.clientX-drag.startX)*200/travel:((e.clientX-r.left-9)/travel)*200-100)} + updatePan(drag.index,drag.fromThumb?drag.startPan+(e.clientX-drag.startX)*200/travel:((e.clientX-r.left-9)/travel)*200-100,true)} else if(drag.type==='knob'){const delta=(drag.initial-e.clientY);updateKnob(drag.el,drag.original+delta*.35)} else if(drag.type==='eq'){const svg=$('eqSvg');if(!svg)return;const r=svg.getBoundingClientRect();const x=clamp((e.clientX-r.left)/r.width,0,1),y=clamp((e.clientY-r.top)/r.height,0,1);bands[drag.index].freq=Math.round(20*Math.pow(1000,x));bands[drag.index].gain=+(clamp((.5-y)*500/9,-18,18)).toFixed(1);renderEditor();} }); -for(const event of ['pointerup','pointercancel'])document.addEventListener(event,()=>{drag=null;flushUiParams()}); -document.addEventListener('wheel',e=>{const pan=e.target.closest('[data-pan]');if(pan){e.preventDefault();const idx=+pan.dataset.pan;updatePan(idx,channels[idx].pan-Math.sign(e.deltaY)*2);return} +for(const event of ['pointerup','pointercancel'])document.addEventListener(event,()=>{ + if(drag?.el)drag.el.classList.remove('is-dragging'); + drag=null;flushUiParams() +}); +document.addEventListener('wheel',e=>{const pan=e.target.closest('[data-pan]');if(pan){e.preventDefault();const idx=pan.dataset.pan==='master'?'master':+pan.dataset.pan;updatePan(idx,(idx==='master'?masterPan:channels[idx].pan)-Math.sign(e.deltaY)*2);return} const k=e.target.closest('[data-knob]');if(!k)return;e.preventDefault();const p=k.dataset.knob,i=+k.dataset.ch,v=p==='phones'?phones:channels[i][p];updateKnob(k,v-Math.sign(e.deltaY)*.5)},{passive:false}); -document.addEventListener('keydown',e=>{const pan=e.target.closest('[data-pan]');if(pan){const k=e.key,idx=+pan.dataset.pan; +document.addEventListener('keydown',e=>{const pan=e.target.closest('[data-pan]');if(pan){const k=e.key,idx=pan.dataset.pan==='master'?'master':+pan.dataset.pan; if(!['ArrowLeft','ArrowRight','PageUp','PageDown','Home','End'].includes(k))return; - e.preventDefault();const value=channels[idx].pan,step=e.shiftKey?10:1; + e.preventDefault();const value=idx==='master'?masterPan:channels[idx].pan,step=e.shiftKey?10:1; updatePan(idx,k==='Home'?0:k==='End'?100:k==='PageUp'?value+10:k==='PageDown'?value-10:value+(k==='ArrowRight'?step:-step));return} const f=e.target.closest('[data-fader]');if(!f)return; const steps={ArrowUp:.5,ArrowDown:-.5,PageUp:5,PageDown:-5}; @@ -151,11 +273,20 @@ document.addEventListener('keydown',e=>{const pan=e.target.closest('[data-pan]') }); document.addEventListener('keydown',e=>{if(e.ctrlKey&&e.key.toLowerCase()==='s'){e.preventDefault();if(persistSession())flash('UI state saved locally');else flash('Browser storage unavailable')}}); let lastMeterFrame=0;function meters(t){ - // Demo oscillators are exclusive to browser-only visual preview. - // Native JUCE owns ALL meter readings in the Windows desktop host. - if(window.__JUCE__?.backend?.emitEvent)return; - requestAnimationFrame(meters); - if(t-lastMeterFrame<33||document.hidden)return;lastMeterFrame=t;channels.forEach((c,i)=>{const element=document.querySelector(`[data-meter="${i}"]`);if(!element)return;const wave=(Math.sin(t*.0022+i*1.92)+Math.sin(t*.0043+i*.6))*.5;let base=clamp(45+wave*24 +c.fader*.48,4,98);if(c.mute)base=2;element.style.setProperty('--level',base.toFixed(1)+'%')});let m=clamp(67+Math.sin(t*.002)*15,8,92);['masterMeterL','masterMeterR','masterMeterAux'].forEach((id,i)=>{let x=$(id);if(x)x.style.setProperty('--level',clamp(m-i*7+Math.sin(t*.003+i)*8,4,99).toFixed(1)+'%')})} + // Real JUCE host never runs synthetic meter oscillators. + if(window.__JUCE__?.backend?.emitEvent)return; + requestAnimationFrame(meters);if(t-lastMeterFrame<33||document.hidden)return;lastMeterFrame=t; + channels.forEach((ch,i)=>{const wave=(Math.sin(t*.0022+i*1.92)+Math.sin(t*.0043+i*.6))*.5; + let v=clamp(45+wave*24+ch.fader*.48,4,98);if(ch.mute)v=2;updateMeterVisual(String(i),v,t)}); + const base=clamp(67+Math.sin(t*.002)*15,8,95); + const l=clamp(base+Math.sin(t*.003)*6,3,99),r=clamp(base-5+Math.sin(t*.003+1)*7,3,99); + updateMeterVisual('masterL',masterMute?2:l,t);updateMeterVisual('masterR',masterMute?2:r,t); + // UI demonstration only. These values are never from a true-peak or loudness meter. + const lufs=$('masterLufs'),tp=$('masterDbtp'),peak=$('masterPeakDb'); + if(lufs)lufs.textContent=(-31+(l+r)/11).toFixed(1); + if(tp)tp.textContent=(-18+Math.max(l,r)/7).toFixed(1); + if(peak)peak.textContent=(-60+Math.max(l,r)*.61).toFixed(1); +} // v0.3: demo-only FX catalog. Items represent mock plugins, not installed VST3 binaries. const pluginCatalog=[ {name:'Studio EQ',type:'EQ',badge:'EQ',hint:'Four-band tonal shaping'}, @@ -180,25 +311,69 @@ function shiftFxMetaRight(ch,at,len){for(let i=len;i>at;i--){fxParams[fxKey(ch,i function shiftFxMetaLeft(ch,at,len){for(let i=at;i``).join('')} -function renderRackWorkspace(){let c=channels[currentChannel];let chain=normalChain(c);$('rackWorkspace').innerHTML=`
YOUR SOUND · CORE WORKFLOW

FX Rack — ${safeText(c.name)}

Build your signature vocal sound. Add, reorder, bypass, and store your VST chain.

● AUDIO INPUT · ${safeText(c.name)}
↓
${chain.map((name,i)=>`
${String(i+1).padStart(2,'0')}${safeText(name)}${safeText(pluginCatalog.find(p=>p.name===name)?.hint||'VST3 plugin · mock chain state')}
↓
`).join('')}
↓
◎ OUTPUT · MASTER / STREAM
${pluginEditorIndex!==null&&pluginEditorIndex

Ready-to-use Sound

Start with a preset, then personalize your FX chain. No complex routing required.

${['Clean Vocal','Warm Karaoke','Live Broadcast'].map(s=>``).join('')}

Make it sound better

Recommended signal path:

Noise Gate → EQ → Compressor → De-Esser → Reverb

Demo status

Plugin names and bypass buttons currently change visual state only. Installed VST3 scanning and DSP are scheduled for the native engine phase.

`}`} +function renderRackWorkspace(){let c=channels[currentChannel];let chain=normalChain(c);$('rackWorkspace').innerHTML=`
YOUR SOUND · CORE WORKFLOW

FX Rack — ${safeText(c.name)}

Build your signature vocal sound. Add, reorder, bypass, and store your VST chain.

● AUDIO INPUT · ${safeText(c.name)}
↓
${chain.map((name,i)=>`
${String(i+1).padStart(2,'0')}${safeText(name)}${safeText(pluginCatalog.find(p=>p.name===name)?.hint||'VST3 plugin · mock chain state')}
↓
`).join('')}
↓
◎ OUTPUT · MASTER / STREAM
${pluginEditorIndex!==null&&pluginEditorIndex

Ready-to-use Sound

Start with a preset, then personalize your FX chain. No complex routing required.

${['Clean Vocal','Warm Karaoke','Live Broadcast'].map(s=>``).join('')}

Make it sound better

Recommended signal path:

Noise Gate → EQ → Compressor → De-Esser → Reverb

Demo status

Plugin names and bypass buttons currently change visual state only. Installed VST3 scanning and DSP are scheduled for the native engine phase.

`}`} function pluginInspector(ch,slot){const name=normalChain(channels[ch])[slot],v=getFxParams(ch,slot);return `
FX EDITOR · DEMO PARAMETERS

${safeText(name)}

These generic controls demonstrate the editing and preset workflow. The real VST3 editor will replace them when connected.

`} function renderSignalFlow(){$('rackWorkspace').innerHTML=`
NO TECHNICAL PATCHBAY REQUIRED

Signal Flow — See where your voice goes

A beginner-first view of the real-time audio path. Select your audio device in Setup.

01 · INPUTMicrophoneAudio Interface
ASIO or WASAPI
➜
02 · FX CHAINVST3 PluginsEQ · Dynamics
Reverb · Delay
➜
03 · MIXERMix & MonitorFader · Pan
Master · Meters
➜
04 · OUTPUTSpeakers / StreamAudio Device
Streaming bridge later
⚠ In this trial the audio flow is a visual concept; no microphone is captured and no audio is sent to a livestream.
`} function renderSetup(){$('rackWorkspace').innerHTML=`
AUDIO DEVICE WIZARD

Make your live setup simple

Windows ASIO / WASAPI support is a core requirement for the native build.

1 · Audio Driver

Actual device enumeration and stream opening belong to the upcoming native engine.

2 · Live Latency

At 48 kHz, 64 samples ≈ 1.33 ms buffer period. This is NOT the device round-trip latency.

3 · Your Voice

This changes the FX chain preview and can later recall stored VST3 states automatically.

4 · Live Safety

Before livestream: verify your microphone level, output device, monitoring feedback, total latency and plugin stability. The future engine will display xruns, dropouts, latency and recovery state here.

`} -function openPluginBrowser(idx){currentChannel=idx;activeCategory='All';$('pluginModal').classList.remove('hidden');$('pluginTarget').textContent='Adding to '+channels[idx].name+' · virtual effects catalog';$('pluginSearch').value='';renderPluginBrowser();$('pluginSearch').focus()} +function openPluginBrowser(idx,isMaster=false){if(!isMaster){currentChannel=idx;pendingMasterSlot=null}activeCategory='All';$('pluginModal').classList.remove('hidden');$('pluginTarget').textContent=isMaster?'Adding to MASTER bus · demo FX catalog':'Adding to '+channels[idx].name+' · virtual effects catalog';$('pluginSearch').value='';renderPluginBrowser();$('pluginSearch').focus()} function closePluginBrowser(){$('pluginModal').classList.add('hidden')} function renderPluginBrowser(){document.querySelectorAll('[data-category]').forEach(b=>b.classList.toggle('active',b.dataset.category===activeCategory));const q=$('pluginSearch').value.trim().toLowerCase();let pool=pluginCatalog.filter(p=>(activeCategory==='All'||p.type===activeCategory)&&`${p.name} ${p.type} ${p.hint}`.toLowerCase().includes(q));$('pluginResults').innerHTML=pool.map(p=>``).join('')||'

No matching demo effects.

'} -function insertPlugin(name){const c=channels[currentChannel];const chain=normalChain(c);if(chain.length>=8){flash('Maximum 8 FX slots in this UI trial');return}const index=clamp(pendingSlot,0,chain.length);shiftFxMetaRight(currentChannel,index,chain.length);chain.splice(index,0,name);pluginEditorIndex=index;setChain(c,chain);closePluginBrowser();flash(name+' added to preview chain');send('chainChanged',{chain},currentChannel)} +function insertPlugin(name){ + if(pendingMasterSlot!==null){ + const slot=pendingMasterSlot; + if(slot>=6)return; + masterInserts[slot]=name;delete masterBypassed[slot];pendingMasterSlot=null; + closePluginBrowser();renderMaster();persistSession(); + send('masterChainChanged',{chain:[...masterInserts]},-1); + flash('Master FX updated (GUI preview)');return; + } + const c=channels[currentChannel];const chain=normalChain(c);if(chain.length>=8){flash('Maximum 8 FX slots in this UI trial');return}const index=clamp(pendingSlot,0,chain.length);shiftFxMetaRight(currentChannel,index,chain.length);chain.splice(index,0,name);pluginEditorIndex=index;setChain(c,chain);closePluginBrowser();flash(name+' added to preview chain');send('chainChanged',{chain},currentChannel)} function movePlugin(idx,dir){const c=channels[currentChannel],ch=normalChain(c),n=idx+dir;if(n<0||n>=ch.length)return;[ch[idx],ch[n]]=[ch[n],ch[idx]];moveFxMeta(currentChannel,idx,n);pluginEditorIndex=n;setChain(c,ch);send('chainChanged',{chain:ch},currentChannel)} function removePlugin(idx){const c=channels[currentChannel],ch=normalChain(c);shiftFxMetaLeft(currentChannel,idx,ch.length);ch.splice(idx,1);pluginEditorIndex=null;setChain(c,ch);send('chainChanged',{chain:ch},currentChannel)} -function toggleBypass(idx){const k=currentChannel+':'+idx;bypassed[k]=!bypassed[k];renderRackWorkspace();send('chainBypass',{slot:idx,bypass:bypassed[k]},currentChannel)} +function setFxBypass(ch,slot,disabled){ + const chain=normalChain(channels[ch]); + if(!chain[slot])return; + const k=fxKey(ch,slot); + bypassed[k]=!!disabled; + const power=document.querySelector(`[data-fxpower="${k}"]`); + const cell=power?.closest('.insert-slot'); + if(cell)cell.classList.toggle('is-bypassed',disabled); + if(power){ + power.classList.toggle('is-bypassed',disabled); + power.setAttribute('aria-pressed',String(!disabled)); + power.setAttribute('aria-label',(disabled?'Enable ':'Bypass ')+chain[slot]); + power.title=(disabled?'Enable ':'Bypass ')+chain[slot]; + } + if(ch===currentChannel){ + const rackButton=document.querySelector(`[data-chainbypass="${slot}"]`); + if(rackButton){ + rackButton.classList.toggle('power-on',!disabled); + rackButton.classList.toggle('is-bypassed',disabled); + rackButton.setAttribute('aria-pressed',String(!disabled)); + rackButton.setAttribute('aria-label',(disabled?'Enable ':'Bypass ')+chain[slot]); + rackButton.title=(disabled?'Enable ':'Bypass ')+chain[slot]; + rackButton.closest('.chain-node')?.classList.toggle('dimmed',disabled); + } + } + send('chainBypass',{slot,bypass:!!disabled},ch); + persistSession(); +} +function toggleBypass(idx){setFxBypass(currentChannel,idx,!bypassed[fxKey(currentChannel,idx)])} const quickPresets={'Clean Vocal':['Noise Gate','Studio EQ','Vocal Compressor'],'Warm Karaoke':['Noise Gate','Studio EQ','Vocal Compressor','Studio Reverb'],'Live Broadcast':['Noise Gate','Dynamic EQ','De-Esser','Brickwall Limiter']}; function applyQuickPreset(name){const c=channels[currentChannel];for(let i=0;i<8;i++){delete fxParams[fxKey(currentChannel,i)];delete bypassed[fxKey(currentChannel,i)]}pluginEditorIndex=null;setChain(c,quickPresets[name]||[]);document.querySelectorAll('[data-preset]').forEach(b=>b.classList.toggle('active',b.dataset.preset===name));flash('FX chain preset selected: '+name+' (UI only)');send('chainChanged',{chain:normalChain(c)},currentChannel)} -function durableSession(){return {schemaVersion:1,version:'0.3-ui',channels:channels.map(c=>({id:c.id,name:c.name,inserts:[...c.inserts],fader:c.fader,pan:c.pan,trim:c.trim,mute:c.mute,solo:c.solo,hpf:c.hpf})),masterGain,masterMute,sceneIdx,selected:currentChannel,fxParams:structuredClone(fxParams),bypassed:{...bypassed}};} +function durableSession(){return {schemaVersion:1,version:'0.3-ui',channels:channels.map(c=>({id:c.id,name:c.name,icon:c.icon,color:c.color,inserts:[...c.inserts],fader:c.fader,pan:c.pan,trim:c.trim,mute:c.mute,solo:c.solo,hpf:c.hpf})),masterGain,masterPan,masterMute,masterInserts:[...masterInserts],masterBypassed:{...masterBypassed},sceneIdx,selected:currentChannel,fxParams:structuredClone(fxParams),bypassed:{...bypassed}};} function persistSession(){try{localStorage.setItem('armix-v03-current',JSON.stringify(durableSession()));localStorage.setItem('armix-v03-snapshots',JSON.stringify(userSnapshots));localStorage.setItem('armix-v03-chains',JSON.stringify(savedChains));return true}catch{return false}} function saveFxChainPreset(){const name=prompt('Name this FX chain preset:','My Vocal Chain');if(!name)return;const key=name.trim().slice(0,60);if(!key)return;savedChains[key]={schemaVersion:1,inserts:[...normalChain(channels[currentChannel])],states:normalChain(channels[currentChannel]).map((_,i)=>({...getFxParams(currentChannel,i),bypass:!!bypassed[fxKey(currentChannel,i)]}))};persistSession();flash('FX chain preset saved: '+key)} function recallFxChain(){const keys=Object.keys(savedChains);if(!keys.length){flash('No saved FX chains yet');return}const key=prompt('Enter FX chain preset name:\n'+keys.join('\n'),keys[0]);if(!key||!savedChains[key])return;setChain(channels[currentChannel],savedChains[key].inserts);savedChains[key].states?.forEach((v,i)=>{fxParams[fxKey(currentChannel,i)]={mix:v.mix,amount:v.amount,output:v.output};bypassed[fxKey(currentChannel,i)]=!!v.bypass});pluginEditorIndex=null;renderRackWorkspace();flash('FX chain recalled: '+key)} function saveMixerSnapshot(){const name=prompt('Name this mixer snapshot:','My Live Sound');if(!name)return;const key=name.trim().slice(0,60);if(!key)return;userSnapshots[key]=durableSession();if(!scenes.includes(key))scenes.push(key);persistSession();createSide();flash('Snapshot saved: '+key)} -function applySession(session){if(!session||session.schemaVersion!==1||!Array.isArray(session.channels)||session.channels.length!==channels.length){flash('Unsupported session format');return}for(let i=0;itypeof x==='string').slice(0,8)}masterGain=Number.isFinite(session.masterGain)?session.masterGain:-.1;masterMute=!!session.masterMute;fxParams=(session.fxParams&&typeof session.fxParams==='object')?structuredClone(session.fxParams):{};bypassed=(session.bypassed&&typeof session.bypassed==='object')?{...session.bypassed}:{};pluginEditorIndex=null;renderMixer();renderMaster();if(view==='FX RACK')renderRackWorkspace()} +function applySession(session){if(!session||session.schemaVersion!==1||!Array.isArray(session.channels)||session.channels.length!==channels.length){flash('Unsupported session format');return}for(let i=0;itypeof x==='string').slice(0,8)}masterGain=Number.isFinite(session.masterGain)?session.masterGain:-.1;masterPan=Number.isFinite(session.masterPan)?clamp(session.masterPan,-100,100):0;masterMute=!!session.masterMute; + if(Array.isArray(session.masterInserts))masterInserts=session.masterInserts.filter(x=>typeof x==='string').slice(0,6); + masterBypassed=(session.masterBypassed&&typeof session.masterBypassed==='object')?{...session.masterBypassed}:{}; + fxParams=(session.fxParams&&typeof session.fxParams==='object')?structuredClone(session.fxParams):{};bypassed=(session.bypassed&&typeof session.bypassed==='object')?{...session.bypassed}:{};pluginEditorIndex=null;renderMixer();renderMaster();if(view==='FX RACK')renderRackWorkspace()} function loadSnapshotByIndex(i){sceneIdx=(i+scenes.length)%scenes.length;const name=scenes[sceneIdx]; if(userSnapshots[name])applySession(userSnapshots[name]); else if(sceneIdx<4){const state=durableSession();state.channels=initialFactoryChannels.map(c=>({...c,inserts:[...c.inserts]}));state.masterGain=-.1; @@ -211,11 +386,21 @@ $('app').classList.add('easy');$('modeToggle').classList.add('active'); $('pluginSearch').addEventListener('input',renderPluginBrowser); document.addEventListener('input',e=>{const el=e.target;if(!el.dataset.fxparam)return;const slot=+el.dataset.slot,key=el.dataset.fxparam;if(!['mix','amount','output'].includes(key))return;const v=getFxParams(currentChannel,slot);v[key]=+el.value;const out=el.closest('label')?.querySelector('output');if(out)out.textContent=key==='output'?`${v[key]>0?'+':''}${v[key]} dB`:`${v[key]}%`;send('fxDemoParam',{slot,key,value:v[key]},currentChannel)}); $('pluginModal').addEventListener('click',e=>{if(e.target===$('pluginModal'))closePluginBrowser()}); -document.addEventListener('keydown',e=>{if(e.key==='Escape')closePluginBrowser()}); +$('channelIdentity').addEventListener('click',e=>{if(e.target===$('channelIdentity'))closeChannelIdentity()}); +$('identityName').addEventListener('keydown',e=>{if(e.key==='Enter'){e.preventDefault();commitChannelIdentity()}}); +document.addEventListener('keydown',e=>{if(e.key==='Escape'){closePluginBrowser();closeChannelIdentity()}if((e.key==='Enter'||e.key===' ')&&e.target.matches('[data-editstrip]')){e.preventDefault();openChannelIdentity(+e.target.dataset.editstrip)}}); document.addEventListener('change',e=>{if(e.target.id==='rackChannel'){currentChannel=+e.target.value;renderRackWorkspace();renderMixer()}}); document.addEventListener('click',e=>{const id=e.target.closest('button')?.id;if(id==='saveFxFromRack')saveFxChainPreset();else if(id==='recallFxPreset')recallFxChain();else if(id==='openSetupFromFlow')setView('SETUP');else if(id==='flowFxButton')setView('FX RACK');else if(id==='backMixer')setView('MIX')}); let lastPersist=0;setInterval(()=>{if(Date.now()-lastPersist<2000)return;lastPersist=Date.now();persistSession()},5000); try{userSnapshots=JSON.parse(localStorage.getItem('armix-v03-snapshots')||'{}');savedChains=JSON.parse(localStorage.getItem('armix-v03-chains')||'{}');for(const k of Object.keys(userSnapshots))if(!scenes.includes(k))scenes.push(k)}catch{userSnapshots={};savedChains={}} -createSide();renderMixer();renderMaster();try{let last=JSON.parse(localStorage.getItem('armix-v03-current'));if(!last)last=JSON.parse(localStorage.getItem('arMixStudioUI')); if(last&&last.channels?.length===channels.length){last.channels.forEach((s,i)=>{for(const k of ['fader','pan','trim','mute','solo','hpf'])if(s[k]!==undefined)channels[i][k]=s[k];if(Array.isArray(s.inserts))channels[i].inserts=s.inserts.filter(x=>typeof x==='string').slice(0,8)});sceneIdx=last.sceneIdx??0;masterGain=last.masterGain??-.1;renderMixer();renderMaster();flash('Previous UI session restored')}}catch{} +createSide();renderMixer();renderMaster();try{let last=JSON.parse(localStorage.getItem('armix-v03-current'));if(!last)last=JSON.parse(localStorage.getItem('arMixStudioUI')); if(last&&last.channels?.length===channels.length){last.channels.forEach((s,i)=>{if(typeof s.name==='string'&&s.name.trim())channels[i].name=s.name.trim().slice(0,26); + if(channelIcons.includes(s.icon))channels[i].icon=s.icon; + if(channelPalette.includes(s.color))channels[i].color=s.color; + for(const k of ['fader','pan','trim','mute','solo','hpf'])if(s[k]!==undefined)channels[i][k]=s[k];if(Array.isArray(s.inserts))channels[i].inserts=s.inserts.filter(x=>typeof x==='string').slice(0,8)});sceneIdx=last.sceneIdx??0;masterGain=last.masterGain??-.1;masterPan=Number.isFinite(last.masterPan)?clamp(last.masterPan,-100,100):0;masterMute=!!last.masterMute; + if(Array.isArray(last.masterInserts))masterInserts=last.masterInserts.filter(x=>typeof x==='string').slice(0,6); + if(last.masterBypassed&&typeof last.masterBypassed==='object')masterBypassed={...last.masterBypassed}; + if(last.bypassed&&typeof last.bypassed==='object')bypassed={...last.bypassed}; + if(last.fxParams&&typeof last.fxParams==='object')fxParams=structuredClone(last.fxParams); + renderMixer();renderMaster();flash('Previous UI session restored')}}catch{} requestAnimationFrame(meters); diff --git a/web/assets/buttons/SO-B-BTN-BLU.png b/web/assets/buttons/SO-B-BTN-BLU.png new file mode 100644 index 0000000000000000000000000000000000000000..8539cf54081a37d6a0bf17e5a5535316dd0d7d31 GIT binary patch literal 994 zcmV<810DQ{P)Z}#HbBo>hp z37SZhsVGueAi2Sa(9`k-prGRuP$JRN&{#-N@C70eq6lyjvP6gEK1g5z!2v8IZs$)i zvwO3)V=E|g7moLnPw&m#?9JR?Z{O_dywBRU-2mPL-T_pH#ZOG^Z7H@Ot|^#o7}j4hf7zkVNFA58Vn-@BZPn%1hZs=5e&?1 z@Pip4^fvbedqg{r%Y8QTi+Qp&10(qo2qi0s(%4231(F6oO2pXP+!ytTb{?1eH1hL2 zQFJlpIU?%j{Qc)ce*W$*_dojpb#o?@$wO<~Rsc8eyv1`bzK(?kEMQ4RAbokvRvQyf z8%n~1APbEmiXA`R`-C69_z-|eKmPg)FQXV!!<5ABgqb05flnf3lSEdGS>VWx+pnD# zxM{EE0bn7W0??nEMpk+GU*xGo*%VQ%m^4#NT4pAY@~9LS2gd*i3xad z3xR?DvSyJDiX5B~7EQu|gi|98x6+&kgIXK1?u)VM@?&Bei(#4R2ixK%xFl=nA zS?hleopJ^io80IE$~aAjQJ%DBLl zae*u2n_Ol5Mx!#GA}ZqoSH=adO!1S^Dwnaocm!9*1+I)=rd7soG%DjMqB1UUWnAFO zxWJY1O|CK?!Ig1=E8{mBmGKC!jBj$4@d&Pr3tSl&xH2wqWnAFO3<7t@f2?vHYelK$ zAn@V-S1Vb}I`Z51Uk?7HZQG;cKy z+3fz_-rn;E2M5n~U3UqVEATopolcLowzj_B-Q9iHBsIWGz%5|@$2BqxWJY92eon5_YFsc QA^-pY07*qoM6N<$f^DkMivR!s literal 0 HcmV?d00001 diff --git a/web/assets/buttons/SO-B-BTN-OFF.png b/web/assets/buttons/SO-B-BTN-OFF.png new file mode 100644 index 0000000000000000000000000000000000000000..87d099df6948c01f024d80d041725054c5788229 GIT binary patch literal 1196 zcmV;d1XKHoP)=M+Uzw(~rnI4=9bIxOL}thMBM&dtpYmzS3e27?apPHR0>tE;Pb#+bEs zyUo_t7L7)OEX!y#8Wcr=a}EHlHA*RzQUDY6q9V^PwY3)K9L~A&#TG?TzG$TsXJ=3wR9SyM{U>-7LI#^9VQtwkwS)<7xpG79XRE1%a|i&6^b+?eRjIeNVw{eB-~ z%vve~*4NiD#*iclN-3!=u-2CSthIEzUHbh#N-0vm zm#L^q$Q0vAP5PHM{*`%WViH~iw~3hcj$Dxc!lVSACOn(RWq z>}%#THpzuig#5ta_gNNEr%~l1{NjhU6O)|8y5T3_69sma+u;{4%#9*K3tse)>~r~7 zQAAa28~R|MWwGWeqY5o|THne^&L1?(a-%g*YBp2gaDZ%wEQ{raOf#}+;zEVMvrZcQ z@Q9Z@fBF(@Ty|k!ic$(azgy%>hyvG46u4%hz%>&Eu9+xs%|wA~CJJ0LQQ(@10@q9w zxMrfjH4_D{86AH^Rv*r}Xu)+81+JMWaLq)4YbFX@Gg080NnsRDbUK}KHIJlM#r44R zkw4c<8klHVW@k+s6nPz{x`-(9>kxhLD>2O=D+R7vB^aq@-W*jfosu+AKTXtMz8aaN zN?fgVnVkim!1wp}G@DI^!{Jy8mn7B2Xkrq7xvwO1Hk(cE?(WJys?};ar4;RUo6XHl z27>{^;jkPeIm_jMD0GSFlVw?%9gt-i=jZ38p_T#zv|24THa6&VI-l(teCzfz@}-0c zhs*VkNJTma7&-tBe=kB^Tn5o?x^ zkx$GD0_0e;+5DL9?Cg9vK0f{dM*cSPyFi`KH^`2m7R4oNf042K`0RKMSk0lWwBJAeTM;pOumfDZuPhCvX#*IK^;fHX~! z=Q*-0Ll}loN&x_ZAb?V8=Av{i=V@+uQM}jd&B)u*xy;Se>-B8?K3QA3ubeOL{tfOk zps@Q4-MBFZ#u#X=0bnMswQi)jVXbu|Y>Yu&*9+sk9LeXUYptJEhF|k!zTa`>^WtsK zfYSIy&#KP(BOVc^2iNPTm-U(CyV}vQgJH z05pa{ZpFT^AS?@?@)Pdln5Pj94?r0xOp^$blZ;yw&npOB;m!kioECE2RUzvE+=}?} zlRMdU=K+GSYPd$=TSnzH41ljYb8p}pfgr3Zt_N`U4EQh}Xfc4guI;4PH{KUR5LO9y z;fBJ#4LXk30BGZYDw#Lo6(bNOzwq{m=$N;#ja1~w*Kv-qm9^Ut29j9Rciz=I!CJ3v_ zB7F^7rGoIn5d#o58ZiK2qX_^R*9)76J?PbOI|QLqyapg1LD&@LdH^v3VH2?X09lsV zjj%8b5k*nsEU+M~BeWA-mZd%Ko@JSpdp&?}$4n5`kwqQ2^#JtA2>$K_|E`T7tQ$V% z4}!p+bOe|IJU%`mNfJyZlg4pKIzTK#Az|I%ukzD}ACe@&Xf(2U)YjIPQA#0AQ|#~W zqbLeYCKFqTz7J#zh#?4T0_krQMfR&EQ550&`r3B%)&mqpft#Bf?CtF#%d({pecDc) z{h#}D!_Sc~%Kxo-+Tx4CZE3!{@0t2ePw{x$eNkFl_*>%NBM7??OOoVsczAgD>EhzzSK#aF&vZInZc7DW$xvs0 zbaeD*@BIAy-^V_~G>X{m;k8#~;tm&fY0wOb@`%0A8P*ocz*t z;{@SHb9#FE5x_qHJ}F}i;y5PRZ{0OZ5SGRtWmy84-3cBqzb%5WR3<#)8o=Lf20?g1 ei~;<`6TSd)i6sG9;Jc;(0000kH9lRC-uUDqQ3-vamqz!ntc`g086djOvgMx)Vp%={^UNynQ~ zlua=Kuv1mln5NU|lf`23+Nhr3<9iQqbaNYXV?Y1~L;zK&2p|AeMX-MW5l~SDxI9FC z%#&-++Q{}Ol?iq+T31hTjq+L|y~w;R`-*Oa~s#!h`ktNU;s?23fsp= z`04If`0H$r;c)nr>bhnCxbw{;{PFtDR1lodlK8TMVEM0Aev68-VVr(g<$+KbNQF$5 z?%kt9{P6V`0Dz&N=+8H{0ke#g65ErGeHlRsSo{Y^4NzrJHh~v3DAuOQp&q?{{ z&08TK6yRjJKt%)whtoX@K7-k605b;@?l%w=!!42;cSX4zqJ!wmBH!XZmXzgWxd?Sb zz`8YT>|t&XeFoSngH;NE$U9z{B8ZKUPzpu4DwxZPP!fC-T%ve~Vs^-R@0|J zo_Ggf<2rd42p}eqyH=PIsR7y zMfpFnPI8Aa+hRU0Z!e1SpQGw}1B%im(E{jEuk;YL07|bB7C=pa(m&J!D7{AS07|b} z`xsPFt}|)@lwPBE0HxQc3#9a#pa9ds04IxOmwQo^jW8V!LO!@aZ=XKxWHXAgX>LC| z4td(z+IoI=c6MVtnc&0EzQp6nt9aglCCI}C$`FgOJ&i~wLl62$c4?TyIA^g=tXEMw zZz+WsLydWT$VRzG5nZnoTCowHv3)K786=;Rh~Ov3LzKg(=*s?urzD`1e3dY?`|vov zj|(^A=4^&Z%*Tsxh)MtK1$7a&#D^?NLMN_TtB?XR6iOTmW}Lrxfp_N5@XMozIG@i^ z*Yzpw?d|>(P>AJSIzCikz zuMu9SC0*6FD*Y#Qmo+ADJ3*6k0KWtHjWn8@(r5ICFs0Y10w}%aZ>A@=#%NataR2}S M07*qoM6N<$g1C=VI{*Lx literal 0 HcmV?d00001 diff --git a/web/assets/buttons/SO-S-BLU.png b/web/assets/buttons/SO-S-BLU.png new file mode 100644 index 0000000000000000000000000000000000000000..50fd149f87f10ddcbd5b0110c96ab9faae982b5e GIT binary patch literal 801 zcmV++1K#|JP))Qd50000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU!!%0LzRCt{2m_2J0Q51%sbMMS-WD^n+ zY!n4QDg_a=v9uTL`~j|=VBs(D2Uw|{*yvxd4_aCJ0d|6-f}$Z&49U*SJ;&nS8CQcy z63y%`J}{iK_XEy*-?Ovq1-J>U0ycrqDsWR$vH&o%bdVz#uCa9T9KHDkvR;nQJz39_ z6&_!BvYv~1idoOa@jOOfIDF=Cx!}CRc|n7rLD9+xwGv7tl!3ZRaj4W~Af#9i(|8%E zhk;N9>S4|B%PK1`pYZzOZ8ko?C9x(+5i^SiICb?d#oQ8zLqxziKw>V!o@0htI&{^T zn^LW>@$AkOHdo#O;DH+eM=xGy_Rxt&69|AIX(Mgi!$&mbP(*6)*iu9{l0yxx2nzubhlzm*g2Wsc2NCg*Q}NCBBr)Pd zR4By$H<5Nf@S~+{bnqV$`*`bk+giVK!W3zWZ%)2T1AfIulE#(94=1#l7()RKwj}{Z zMf|#Q54z@W;r_g2{Q2n>JE=^C6H_5#6 zw&H&~jSH=aFkJ7lj%}mmW}CMnzP@?hNijR+%bTZd-imnl=sxx4w@wP$E@8ON`^OL3 z&+RoPz|7)74xhiw!tvAieSKW+@Og&IeT+qhFFdY@ceK99afQbh87_}=KF^TM;WCfQ z9O4|Niq?wO0jrfz)r2yjRZS>sv(V?oVUyO*hp8H zTSQDMPDDO*UBqq>k&kXL7~Jmn`(L{*W+%+f&aMpxgIi)|mw^31?@yb?kRk9%Y=Zws fG)&ho_9XKizI(&@Ey&Hv00000NkvXXu0mjfoH=my literal 0 HcmV?d00001 diff --git a/web/assets/buttons/SO-S-GRE.png b/web/assets/buttons/SO-S-GRE.png new file mode 100644 index 0000000000000000000000000000000000000000..cc9e444d8618b856a2be26d2bc8f883e37376ff2 GIT binary patch literal 766 zcmV)Qd50000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU!ph-kQRCt{2m``gHK^TXhnRhl;w}@za zv3D&Zh~7Nt$M7x@JoqL206nP(Z-V$i1WzI!R0`T&6%|`r#rP*X@4O!NZ%_}ml5IjC z7&4p8Cch`|>})asYrqa*GuU>3HCJ^`0OTt<=Wm^3)8MNQ~u}?>pak z_w+sM_tyFPc0|RltBlA`ALHu%D=eHm0^Z@g!+F3taNuxE8^fya+^__e43aVaJm&Gu zCyXkQP@k|mTxD>4P!5E)U{!W=HeG`{1GExWN`yS)+>KS9-F^;qB$h6oniTM01`cbg zF?H%HRDDa<2rXS&YKAou*BO)hE=n|%o-V4kY-3|2h&ypN)hi$mp-Oa z9jpH6^t((=BVlUb=~Tcq@6ew@hi)azAhj>G5@xvM$_w~UQ>Z?khEcO-PSRAM7O7~b zQ({8EuwItczhSji_f}UiQHk!7>TvCe2ZRZc4&e_YCr_9GI+f@%#{Teq2lyWxN*omC zLSo`)$E?y>VrSQ4E~e95NVGS*K2z+Ixwx?BVmcj4926RfIEsDd_-FKoHvL9o`_*rEtFV2uZ5x- z(OB-~jz?p*UT*RF!JB3a^EZiE#XILd^c`Y9IOjh4;c$32&+{*RhuI5@i;KI%;qZ<# wvunUIaHQ{0d*CPV$=NJ#b5zXN9ebAf1^dH#zzKkNi~s-t07*qoM6N<$f=rTI#Q*>R literal 0 HcmV?d00001 diff --git a/web/assets/buttons/SO-S-RED.png b/web/assets/buttons/SO-S-RED.png new file mode 100644 index 0000000000000000000000000000000000000000..910e55016370b38654f19f8a28e9079792bd9ee2 GIT binary patch literal 703 zcmV;w0zmzVP))Qd50000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU!VM#>eC&cz#aQ zL?RJSIvqZ2ZL!*FVE_>+_h<|EF9lQ;1wym~Fquwyv$x0S;sO8*yaRZi|efAjISoRNI&wQ&fY!YMz4tq_Danpll_WRioPW8N#b#s%;c)SPY12 zTc!C($`FY#y@^DttTT{#@BdMLWnR(M8A+N!B!HS{;3ic;lICVY7aSnzYL$wc0-7Lm zbI9UruAQ2yrKrSGK+FbPo7+&!Rf*=-VM!|S0I?`q3W$fnUKA}C#F_VX=5cFXgplnF zv4476OEP!Wx091>XNXUu5x<!^^e_T{RW5Xh(e=eClvqy002ovPDHLkV1l#cLdF09 literal 0 HcmV?d00001 diff --git a/web/assets/buttons/SO-S-SLV.png b/web/assets/buttons/SO-S-SLV.png new file mode 100644 index 0000000000000000000000000000000000000000..c6ce6776bdef75658a91efe0fb5b23af36b158fb GIT binary patch literal 928 zcmV;R17G}!P))Qd50000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU#LP>nxdMKWlE+Qs!EnAnq{bFs5;a+oKsXC&N-~LSZguHV2mNgNQ{vX z0wDyv_mri_`;xM*%d(&>3W}nnEK7>AsSAqZlAkf7p9b)ytgNgg z5#h#-HGaH*pHHq|#~F)p7HcfVTC5So7>u!4p|0zf$Yd;nF$QZ5Qr99vN{JXFDJ4Rv zfMPQ@RX5|1AjVMDF%d%`#6a``9|P~+zU8L}4|wzDH7O;Gh#(@|+1VlQ=T(ygL;w+t zfJkN18mU06!`bT7*1PYVqM4%Fbnf&^>rQH>IHy(D)XkjF7+YV*RM)M2RDLRZc|Ygd zojWw%P4na0{&KtVU%yLLx3`2awKP*sP4T{4NX|L-^q}6*lb(R>FSgrrx`w8|(m(&| z9aEm??L)`B=ew0;YJ;ZcCfk2WC)3Bv8A}&D?<~aPpQabn37;41M8`E3qH9e#&(Ht6 z6Cab75M9v{qAOZLbVW;uu4oC-6)hpUqPY-rlb!|XJU=bO_;`E;R{lGU#}mIT#QtEv zd)q%x3I5*SZ-*_!@4HVp8qeuQI)g7UnY=9g^zrG8r8(z48jsoCebSC4&+{ZAtgWrF zwYA0V+h6nPXP?v0`&?7SHBn`zIICppP*q$Lnps;%mk#SJ)|fg3lT$HfjEN9DAx44^ zgy8YsC?aX?eSvviF|BV9-XREkukFRb_pBeI}Udl2S^HMk9v9Aw^MOjA zST)2elT!L2rSxjihAyL&(({zkJxM8%Wf{PCz{eEG9s<9r>dZg(vqibNq@DweMxz;s zJ>Y0Dem+=Z;E!ftPAoj4A`Dk->Y@r%{vJ{J1>j#btW>W0^07()0000)Qd50000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU#Gf6~2RCt{2m`jTsRTRg6=ib{HW_p~7 z2GNMR3T_n%qWC?s2rdGRJ0IZZ2!fA=f;$oYBre2RnVlz?DHt8P7R zb-Jf#u%<))(A2r_|NlHL)dg@HxDVI{{_X>}r8F)Bymob)&pv#E_piUi{{9xudwlS? z5O5*j!>D|=Z5IO02VC$t9}w?x&Lhqt&S9#UDyk8S5sd{}RL_D~RL@z<)?`OCMjk#q z;pc;UeE!|<{CRgui3d_D;?sneDD&yU^ zUPuc>$_>Q8`aN$Q|8*m@3YyL+H%%N`&#ps(_ujsei`d@_m?>tB5s)wk@<$wIDj6{pC%aHAT-G@6VP2>i)i>#dW3XIN)HP; zMVV)*1fBZGZL|J(*CNd36iTnxyOil89q;w>52s z5&2EkQ#0L*vP3Hq)r3|tcQ$V6IBV`Kz>}iVm&OednxzXO8PD@{{v!0&Tc@+xs?$l! zT4=jI+v|T3v246EA#_I;-8!otFa&B5=x{8~h^(+T5sgSZ6EP^BrPD=0cExTYo~}r& z_4o3Eppi}kvN$7>h~sI&?v5Xl%c=0szx5kN`ebl$=kXw9*2S-Pj+324eDmWWj~>TC z2%Q$k)5y0!9j12rj0y1iD_eZ@!BwumxyR0q!#Rf^dAt`~DDB|pzmdm}1Ru)2k;8dM z2oCWM=LP2-&Izi9Mn$7xQ7H;VqY`IIER?J%Shkfoi)f+5IPX_grc>qMw03lX{JCX>lmREYQw_o)oS(0Eg{00000NkvXXu0mjfykE5! literal 0 HcmV?d00001 diff --git a/web/assets/faders/FADER-RED2.png b/web/assets/faders/FADER-RED2.png new file mode 100644 index 0000000000000000000000000000000000000000..2369e1b9002522600948909246918e57880da1ed GIT binary patch literal 2721 zcmV;S3SRYzP)-_>$hmh3tA(w4RV__up|e}7a}pR*!dL_w8F zj7&lxKDX?wdVM68O4 z0T4j}R3R@Y8Qh3aiV*Xn1}Kf86v2p~nJGk&yha2H5&hEkw*U3n*P2dLg3E z7Ddr9hC*ZsY?V}%PF7=vK(h1}kQK@G{6?&ZdA2A_A)-^&*Bz>r7{iXWbge~Iv4F{3 z&p(%_b5T1jgPMUgYb)e6@>)WSm1{ZQvX*UY0kGC$t;JZ2IENSm#w0Zwa}Fw!fLqWQ z({YSwjHvg-5D59xKBAUQr!9C<&@D^UIZRbyIvu2{FlC7p1!652a}K_!iOhh;n1Dk- zn}#@>p><81PKkAmc#qCzNY;p(b6=L2ZkK2+rqg*G+_|KBW778uxV93jqTZvJ-4S*-gxcQ%k}Hm`N5q#+>H^ZG1BdH=v=)@7>^-FKK$PI z((f$w)4;a@N@K+B>>#rlc5jdFwQF>X0-a2f+EGQU#SaF&_ucPu@BR0YqF8dHrxu3jWGt}M0gMa zZ{55}ynUO)tu5*tk^CAy0hp<>-|gam`&-_+d6Ner;6#wW+S<~;-rnZ3RYg$c45(v# zs^@$WDNq^17T`qqU0w4(XJ?qw7+$I>)LI6r%+?GHDT2;ofGYneBXYv zaGndUE&iuHUx;w6s&FDS`H?tCK3E#VmNC5Q9MTpC3pX!=bj8sgpRcsV0?VMT&JyxG)4^2v6d!3 zRtM)nrc;)w(hOnQZ9W0D>sVvxlqF4FQ$8lSb2P?q_vD1h24Z{H7+$_|g^qLc+>s>D z?iQ+w7q47dYdUQys$!}N>pkT>!inID0_z;*{ytX@4pJepX40mie)y13*SOZt0i-OE zvIOU7PES*Vux^SGoI|Q=-u)zS=a8bn6a`|;d0by3iM6STED9utS_crFL!BeGtg%8Y8jSOFf_nu8EO<|KlI&I7hsDckNZoA}Og+ zoO(|aBl7CjmfjnWiJOr20x}}J(CgtkRmDGj^P6>X!j&aOuSb3VK7(7g2&2(*pjmAgS1Xy1vzNt2Ge+F*E>~{cpm_dyTRnHaF}}jHmi|)alEIzdX@6|=bu)yf1aEJ z?-QOX^MMc|DFk*p8#B1rG)pbFgIqLNi&&e6I2$rJY3DSH-~gtoXdXRc@S`8$N2B$H z*&J5g?k;;bZqPeAnqOK152F!oe?J-AnhVHS*M!jsQ&o?HYmAgfN0bK#>jPb-vP{#e z7QCGniM44wQdKFZ^YM+qlhV9y&oeqPWoJW26}jX!?D^c)XzY zx~4fkM!lyvIGCrrMT45_;R21w%9Q%CiA9Xe`hEP#$%3oJNH{x#{e9H?lvGxCi1L2P z`3YS<2AUi;1@Nkb+=B-=-+!A<**-p|o=%hRi*pqF`|N!6t3+#=y!T#8eXD9;JZ^{h z3sklL$=YhK&c8#T_nFUdgH zhzDFShJL@#?9Lq?9Ut?7_Y^t&t!pfT2#xo=a(v9}&K>&wKEW8|3)|cJ`CgAb=NN^+ zSqN+O@s?DTZEM-JmVx)&9*=Pf{x{>X3#wQVHq#&{iX_Xo$#ok8^bJso=q7<7?>3*~ z^d0cNz@ZgUNl|5U=*bN=sEWex9q@C3*F{7xbD1?Vpn1Ida|8T9A)snm&)n}aQdF&` z!1td{;hhNm2nVuBmCw;3LSNw*&WMav^=?!>5Rp~`o6x-?5>(Xzca6x{sj3IwjPM$& zi+k(qCdumqys4_*9+o8}i+>h)ft(&lZn>^c5SRc1;6D_;158{_eO}?efksk-YG0LD z7iku%2HwhexSVTez?8(@l+9RuTVK=}50~HaX@C=81QZ(tZ-9RO&ZVJB7p+$8vT34Gx#fk^U0$ELDcT7UkWU0l96BU$}ro5N27+O9Wa!I)iK z-mY%e1b7iOOIzbcWO3_RV6)Y;wr@NDa@nh*>!OP=#E8r{cU*pNbyE>0sLtP=*u;MA b6Vaale{01`QfU`@00000NkvXXu0mjfggQHK literal 0 HcmV?d00001 diff --git a/web/bridge.js b/web/bridge.js index a89acb78b..27d41ee55 100644 --- a/web/bridge.js +++ b/web/bridge.js @@ -309,27 +309,42 @@ tracks.forEach((track,i)=>{ const rack=track.querySelector(".rack"); if(!rack)return; + if(track.classList.contains("master-strip")){ + track.dataset.preview="1"; + track.title="Master FX and master PAN are visual previews; Master fader and meters are native"; + track.querySelectorAll("[data-master-insert],[data-master-power]").forEach(x=>{ + x.disabled=true;x.title="Preview only — Master FX DSP not yet implemented"; + }); + const pan=track.querySelector('[data-pan="master"]'); + if(pan){pan.removeAttribute("tabindex");pan.style.pointerEvents="none";pan.title="Master PAN DSP not yet implemented";} + const marker=track.querySelector(".master-info-kicker span"); + if(marker)marker.textContent="PEAK ONLY"; + return; + } if(i!==0){ rack.dataset.preview="1"; track.dataset.preview="1"; + track.querySelectorAll(".meter-peak").forEach(x=>x.style.display="none"); track.title=`${track.querySelector(".strip-name")?.textContent?.trim()||"Channel"} — visual preview only; native I/O not wired`; return; } const signature=state.chain.map(p=>p.id+"|"+p.bypass).join(","); if(rack.dataset.nativeSig===signature)return; rack.dataset.nativeSig=signature; - rack.innerHTML=state.chain.slice(0,4).map((p,i)=> - `
+ rack.innerHTML=state.chain.slice(0,5).map((p,i)=> + `
- + + title="${p.bypass?"Enable":"Bypass"} ${escapeHtml(p.name)}">⏻
`).join("")+ - ``; + `
`; }); } let renderPending = false; @@ -356,11 +371,20 @@ // Capture native controls before the legacy v0.3 demo handlers. document.addEventListener("click", function(e){ - const el=e.target.closest("[data-native-action],[data-native-add],[data-native-fx],[data-native-category],[data-go-native-rack],[data-insert],[data-plugin-picker],[data-plugin-manager],[data-my-sounds],[data-preset-mute],[data-preset-save],[data-preset-load],[data-close-modal]"); + const el=e.target.closest("[data-native-action],[data-native-add],[data-native-fx],[data-fxpower],[data-master-insert],[data-master-power],[data-native-category],[data-go-native-rack],[data-insert],[data-plugin-picker],[data-plugin-manager],[data-my-sounds],[data-preset-mute],[data-preset-save],[data-preset-load],[data-close-modal]"); if(!el)return; e.preventDefault();e.stopImmediatePropagation(); if(el.dataset.closeModal){hideDialog(el.dataset.closeModal);return;} + if(el.hasAttribute("data-master-insert")||el.hasAttribute("data-master-power")){ + toStatus("Master FX is a visual preview; real processing is Channel 1.");return; + } + if(el.hasAttribute("data-fxpower")){ + const [channel,slot]=el.dataset.fxpower.split(":").map(Number); + if(channel===0)send("fxBypass",{slot,value:!state.chain[slot]?.bypass}); + else toStatus("Visual preview only. Native FX available on Channel 1."); + return; + } if(el.hasAttribute("data-my-sounds")){openMySounds();return;} if(el.hasAttribute("data-preset-mute")){ send("monitor",{value:false});state.monitor=false;renderMySounds();return; @@ -548,15 +572,20 @@ liveOutputRight=Math.max(percent(d.peakRight),liveOutputRight-5); const meter=document.querySelector('[data-meter="0"]'); if(meter)meter.style.setProperty("--level",liveInputLevel+"%"); - const nativeMasterLevels={ - masterMeterL:liveOutputLeft, - masterMeterR:liveOutputRight, - masterMeterAux:liveOutputLevel - }; - for(const [id,level] of Object.entries(nativeMasterLevels)){ - const x=document.getElementById(id); - if(x)x.style.setProperty("--level",level+"%"); + for(const [key,level] of [["masterL",liveOutputLeft],["masterR",liveOutputRight]]){ + const target=document.querySelector('[data-meter="'+key+'"]')|| + document.getElementById(key==="masterL"?"masterMeterL":"masterMeterR"); + if(target)target.style.setProperty("--level",level+"%"); } + const aux=document.getElementById("masterMeterAux"); + if(aux)aux.style.setProperty("--level",liveOutputLevel+"%"); + // Design-only LUFS/true-peak fields have no native measurement yet. + const lufs=document.getElementById("masterLufs"),tp=document.getElementById("masterDbtp"); + if(lufs)lufs.textContent="—"; + if(tp)tp.textContent="—"; + const pk=document.getElementById("masterPeakDb"); + if(pk)pk.textContent=Number(d.peak)>0 + ?(20*Math.log10(Math.max(1e-8,Number(d.peak)))).toFixed(1)+" dBFS":"−∞"; const cpu=document.querySelector(".cpu strong"); if(cpu)cpu.textContent="NATIVE"; const statusSetup=document.querySelector("[data-native-setup]"); diff --git a/web/index.html b/web/index.html index 21d9462f4..9ae82c1bf 100644 --- a/web/index.html +++ b/web/index.html @@ -27,13 +27,9 @@
-
UI STUDY · Audio engine disconnected · Simulated metersDrag faders and PAN sliders • Click FX insert to open plugin browser • Ctrl+S saves sessionArSonMix | FX HOST UI PROTOTYPE
-
+
diff --git a/web/styles.css b/web/styles.css index 0077d54ac..ac7a7f306 100644 --- a/web/styles.css +++ b/web/styles.css @@ -220,3 +220,375 @@ /* Utility icons, EQ editor, plugin categories and signal/rack workspace * intentionally RETAIN their original design. No imported rectangular PNG skin. */ @media(prefers-reduced-motion:reduce){:where(.toolbar button,.left-rail button,.right-rail button,.strip button){transition:none!important}} + + +/* ArSonMix v0.5 interaction polish — visual only, no signal-path side effects. */ +/* Pan fill starts at 0 (center) and grows toward the thumb in either direction. */ +.pan-track .pan-fill{ + position:absolute;z-index:1;pointer-events:none;top:18px;height:5px; + left:calc(9px + (100% - 18px)*var(--pan-left,.5)); + width:calc((100% - 18px)*var(--pan-span,0)); + border-radius:2px; + background:linear-gradient(180deg,#92fff1 0%,#34d9af 39%,#08ae85 100%); + box-shadow:0 0 6px 1px #37efb0ba,0 0 3px #b7fff4; + transition:none; +} +.pan-track:hover .pan-fill{filter:brightness(1.25);box-shadow:0 0 7px #57fcd6ae} +.pan-track.is-dragging .pan-fill{filter:brightness(1.55)} +/* At small pan offsets the metal thumb occludes the short LED ribbon: + a subtle aqua edge makes every nonzero position observable. */ +.pan-track:not([aria-valuenow="0"]) .pan-thumb{ + filter:drop-shadow(0 0 3px #35efbfba) drop-shadow(1px 1px 2px #0008); +} +.pan-track:not([aria-valuenow="0"]):hover .pan-thumb{ + filter:brightness(1.3) contrast(1.12) drop-shadow(0 0 5px #69ffe8); +} +.pan-track:hover .pan-thumb{filter:brightness(1.30) contrast(1.12) drop-shadow(0 0 4px #b4f7ff90)} +.pan-track.is-dragging .pan-thumb{filter:brightness(.72) contrast(1.20) drop-shadow(0 0 4px #52fbd590)} +/* Keep original metallic PNG, dimensions and translating anchor EXACTLY unchanged. */ +.fader:hover .cap,.fader .cap:hover{filter:brightness(1.30) contrast(1.11) drop-shadow(0 0 4px #d8f6ff8c)!important} +.fader.is-dragging .cap,.fader:active .cap{filter:brightness(.72) contrast(1.19) drop-shadow(0 0 6px #59cae6)!important} +/* Physical feedback; visual state retains semantic color and the original PNG. */ +:is(.strip .channel-actions button,.strip .utility-row button,.strip .fader-tools button, + .left-rail .tabs button,.right-rail .master-tabs button,.right-rail .master-right .right-button, + .left-rail .rail-presets button,.left-rail .rail-bottom button, + .toolbar .nav button,.toolbar .mode-pill,.right-rail .master-right #talkBtn):hover{ + filter:brightness(1.30) contrast(1.10)!important; +} +:is(.strip .channel-actions button,.strip .utility-row button,.strip .fader-tools button, + .left-rail .tabs button,.right-rail .master-tabs button,.right-rail .master-right .right-button, + .left-rail .rail-presets button,.left-rail .rail-bottom button, + .toolbar .nav button,.toolbar .mode-pill,.right-rail .master-right #talkBtn):active{ + filter:brightness(.72) contrast(1.22)!important; +} +/* Each occupied FX slot has two *independent* targets: label/edit and on/off. + Empty slots stay full width. Never make entire insert visually disabled. */ +.strip .rack .insert-slot{height:25px;min-height:25px;display:flex;align-items:stretch;gap:2px;min-width:0;width:100%} +.strip .rack .insert-slot .insert{flex:1 1 0;width:auto;min-width:0;overflow:hidden;white-space:nowrap} +.strip .rack .insert-slot .insert-name{display:block;flex:1;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden} +.strip .rack .insert-slot .insert-led{flex:0 0 14px} +.strip .rack .insert-slot .fx-power{ + width:22px;min-width:22px;max-width:22px;height:25px;min-height:25px; + border:1px solid #106f72;border-radius:3px;cursor:pointer; + color:#76fff4;font:700 15px/1 'Segoe UI',sans-serif; + background:linear-gradient(180deg,#28424a,#09272b 52%,#0e333a); + box-shadow:inset 0 1px #b4f8e74d,0 1px #0009; + text-shadow:0 0 5px #4ddca59a;padding:0;display:grid;place-items:center; + transition:filter 90ms ease,box-shadow 90ms ease; +} +.strip .rack .insert-slot .fx-power.is-bypassed{ + color:#637884;text-shadow:none;border-color:#34444c; + background:linear-gradient(#1e292f,#0d1419 55%,#1b282e); + box-shadow:inset 0 1px #7e94942c,0 1px #0008; +} +.strip .rack .insert-slot.is-bypassed .insert{color:#788e9b!important;filter:saturate(.55)} +.strip .rack .insert-slot.is-bypassed .insert-led{filter:grayscale(1) brightness(.6)} +.strip .rack .insert-slot .fx-power:hover{ + filter:brightness(1.45)!important;box-shadow:inset 0 1px #d9ffed88,0 0 5px #48f9be7b +} +.strip .rack .insert-slot .fx-power:active{filter:brightness(.65) contrast(1.15)!important;transform:translateY(1px)} +.strip .rack .insert-slot .fx-power:focus-visible{outline:2px solid #8cfbe7;outline-offset:1px} +/* Existing FX Rack power button shows consistent enabled vs bypassed state. */ +.chain-node button[data-chainbypass]{width:34px;padding:0;min-width:34px;font-size:19px;line-height:1} +.chain-node button[data-chainbypass].power-on{color:#61f9df;border-color:#1a988e;background:linear-gradient(#1c4648,#073037)} +.chain-node button[data-chainbypass].is-bypassed{color:#6f8390;border-color:#364954;background:linear-gradient(#26323a,#131d24)} +.chain-node button[data-chainbypass]:hover{filter:brightness(1.30)} +.chain-node button[data-chainbypass]:active{filter:brightness(.74);transform:translateY(1px)} +/* Clear selection without noisy new gradients or changing other control geometry. */ +.strip.selected .ch-id{box-shadow:inset 0 0 0 1px #8fe4ff3b} +@media(prefers-reduced-motion:reduce){.fx-power,.pan-fill{transition:none!important}} + +/* v0.6: subdued hardware feedback and center detent (zero snap in JS). */ +.pan-track:not([aria-valuenow="0"]) .pan-thumb, +.pan-track:not([aria-valuenow="0"]):hover .pan-thumb{filter:brightness(1.08) drop-shadow(1px 1px 2px #0009)!important} +.pan-track:hover .pan-thumb{filter:brightness(1.12) drop-shadow(1px 1px 2px #000a)!important} +.pan-track.is-dragging .pan-thumb{filter:brightness(.9) drop-shadow(0 1px 1px #000c)!important} +.pan-track .pan-fill{height:3px;top:19px;background:#35caac;box-shadow:none!important;filter:none!important} +.pan-track:hover .pan-fill,.pan-track.is-dragging .pan-fill{filter:none!important;box-shadow:none!important} +.pan-track::after{z-index:2;top:15px;height:11px;background:#829aa6;box-shadow:0 0 0 1px #071016} +.fader:hover .cap,.fader .cap:hover{filter:brightness(1.19) contrast(1.06) drop-shadow(0 1px 3px #c6deef70)!important} +.fader.is-dragging .cap,.fader:active .cap{filter:brightness(.82) contrast(1.11) drop-shadow(0 1px 3px #244c5b)!important} +:is(.strip .channel-actions button,.strip .utility-row button,.strip .fader-tools button,.left-rail .tabs button, + .right-rail .master-tabs button,.right-rail .master-right .right-button,.left-rail .rail-presets button,.left-rail .rail-bottom button, + .toolbar .nav button,.toolbar .mode-pill,.right-rail .master-right #talkBtn):hover{filter:brightness(1.13) contrast(1.05)!important} +:is(.strip .channel-actions button,.strip .utility-row button,.strip .fader-tools button,.left-rail .tabs button, + .right-rail .master-tabs button,.right-rail .master-right .right-button,.left-rail .rail-presets button,.left-rail .rail-bottom button, + .toolbar .nav button,.toolbar .mode-pill,.right-rail .master-right #talkBtn):active{filter:brightness(.87) contrast(1.09)!important} +.strip .rack .insert-slot .insert{padding:0 4px;font-size:9.5px;text-align:left} +.strip .rack .insert-slot .insert-name{min-width:0;text-overflow:ellipsis} +.strip .rack .insert-slot .fx-power{width:19px;min-width:19px;max-width:19px;font-size:13px} +.strip .rack .insert-add-glyph{flex:0 0 10px;color:#63c8e1;font-size:12px;line-height:1} +.strip .strip-name .strip-caption{max-width:96%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} +.strip .strip-name:hover{filter:brightness(1.12)} +/* Channel identity: console-matched floating control panel, not a page takeover. */ +.identity-overlay{z-index:60;background:#03090d88;display:grid;place-items:center} +.identity-overlay.hidden{display:none} +.identity-panel{width:min(390px,calc(100vw - 30px));padding:16px 18px 17px;color:#d9e7ef;border-radius:7px; + background:linear-gradient(150deg,#2a3944,#111e27 48%,#15232c); + border:1px solid #5a7481;box-shadow:0 16px 48px #000c,inset 0 1px #b8d4df46} +.identity-top{display:flex;align-items:center;justify-content:space-between} +.identity-kicker{font:600 10px Consolas,monospace;color:#74c7e2;letter-spacing:1px} +.identity-close{width:27px;height:25px;color:#bdcad2;border:1px solid #48606e; + background:linear-gradient(#364651,#14212a);border-radius:3px;cursor:pointer} +.identity-heading{font-size:18px;font-weight:600;margin:5px 0 19px;color:#f3f9fc} +.identity-label{display:block;font:600 10px 'Segoe UI',sans-serif;letter-spacing:1px;color:#91b8c8;margin:15px 0 8px} +#identityName{width:100%;height:36px;padding:0 10px;font:500 14px 'Segoe UI';color:#f4fbfd; + background:#0b1921;border:1px solid #43606c;box-shadow:inset 0 2px 5px #0008;border-radius:4px;outline:none} +#identityName:focus{border-color:#55c8e4} +.identity-icons,.identity-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px} +.identity-icon{height:35px;border-radius:4px;border:1px solid #324550;color:#dbeef6;cursor:pointer; + background:linear-gradient(#304452,#162530);font-size:17px} +.identity-icon.selected{border-color:#6bd5ea;background:linear-gradient(#226682,#123448);box-shadow:inset 0 0 0 1px #62dafa66} +.identity-color{height:28px;border:2px solid #101b22;border-radius:4px;background:var(--choice);cursor:pointer;box-shadow:inset 0 1px #fff5,0 2px 4px #0009} +.identity-color.selected{outline:2px solid #eefaff;outline-offset:1px} +.identity-actions{display:flex;justify-content:flex-end;margin-top:21px} +#identitySave{height:34px;padding:0 16px;border:1px solid #2799b8;border-radius:4px;color:#f1fbff; + background:linear-gradient(#257fa0,#0d4761);font:600 11px 'Segoe UI';cursor:pointer} +#identitySave:hover{filter:brightness(1.12)} + +/* MASTER STRIP — matched physical segments and red master fader, without shrinking tools. */ +:root{--master-cap-asset:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAABaCAYAAABAO43mAAAACXBIWXMAAC4jAAAuIwF4pT92AAAKU0lEQVR4nLWaz48jx3XHP6+qupvk/NDORDOSNRutLMCC7Sjwr0CGfNXGixxyyt0Xn3L10cg/kBx8zB9gCIGRAIaDAF54bSAXAQZsyT8Qe2WsLC/kJLtY7Q455IxINruqng9VzSG5mjF2RT6AILubXd/3Xr/f1XJYluw599KWtf/4t3t7f39UVZ+zIlxEQZVJjExCIORzFuhaS9cYLro3qPL/df3ujweD//oohH898f4D+Zvd3dfOvP/+a7u7R9f39rSO8WJkIKoyjpFJjATVBC5C1xh6xmAuYbwyRn8yGMjPRqP/3XHuH1wd4z9Xxhx9aXu7KUSsiogBEEEBVCEvKBnciFCKEPOiBiiNoRTBiKCZKUSQvEYEChH90va2//XZ2V9OY/wXp/B6IaLPFkXRMYZCZAlslVSVTlZjhkCy9BaQFcn1/EasiHm2KEwholPV1x2qlRjDjrV0rUVVsYDJXM8/l6hzUTstg5qBNWsr5DXyWkKMlWs537KWbWsBsNZircVYiziHGAPGJDUacw4qkoBb0BjTcYxojKj3xBAI+dM+opZNpy14UdAtS9Q5TFVhOh2kqjBliRQFYi0Ycw6+qInMgMaYgENAm4Y4m6F1TZxOiXWNeI/OZkjWiJtzX5aYbpdoLabTeRzcuaR6Y9L3Cri2Equi3qPOgbVoZlZFMCEkrPyYnBNh5D23p1PeePllJs5hiyIBtqCLUotcDK66LL33aNOgTUPwnm7T8LPbtxl5T+kcDsCoEqzluW98g+bwEKO6LOFlxnYRtcxkjUQRig8/JHz722l9wNWqfLosuf7GG/idHVynQ++VV86N6WmAFxkQwR8fM71/H7+7y/Xr1/nBnTvcjRGnMdLtdOhcvUoYjyFGPvze99LvLPXTwLcBSmPE7ewgsxl2b4/utWt0iwKdTJLaUUWsxQ8GvPfd73Lv/feRolhyo6cWnhSAShFe/da3MNmdAZwxhnFdM33wALa3+eGvfsU0h9B1UVBl11q+IML43j3GdY0xBuNEeBACb928Sbx9m8OtLeockfwaPgGYqbLf7eJ/+1veunmTByHgRJC/2trSv97e5rNVRVDlDKhjfKrnfBEpUBnDFuBE+F1d8z9nZ5jSGF6qKtRaBqrM1gwMKYLOYuREFbWWl6qK0hjcYjosRXjoPX4NhrZKToTDoqAUQY3BQLL2QgQnwl8UBS+UJeuHTtLXqjgRYjbmOXiRq5HP9XqURbFUEABLbtcmhtVr8/P5mpDSq4gwaxreHY/xqmgLLiS1d42hUeX3kwmurtcqvQA+prqnmxONkLNaKUJlzLxCCTE+LvHHpNDHzq9SDq+qSiFCxxg0YyCSJC9E6IjgVfm/2YyZ6tzi23zffrNwnguuLf6nPV+IcK2qcCI0+ZE4SD5YGsOWMbzqHNIWBws3L4KtMrDIxCpD8+9cXDYxUrVZbQ4uwp5zXHnuOaSq1hLXzzkTtK45efCAQdNQ5eeeDE6EjrUYYHx8vFynrYk0RgzQsZYmP1YH50GmU5ap0gxh2W0+AbXrWGPolCVNXVM+JrlzNMZw9+SEyQZie9cYXr5yhY5z89yRJM/uFqqKF69cWWs6bSmqYqoK6z3lPMKJ4IoC6xzl/j5XDg5SIbFm0qahfviQUNe41s8BpCyRsgTnaE5PU4OwbooRnEOqat79JHDnkKLAFAVizHlcXyOJtamJLAokh1oHEJ1DnSO2rdEGSEnups4Rc+vkRIS9Xo9nqgrT6yXwDUiOCBojsddLPaAIromRf//jH+k4R7x7d+1VzCIpqVGcek8TI/Lq1pbeG4+Jm5D2AjIivNDr4TpVxT9985t0u11ijH/+zk8KbAyTyYR/e/NN5GuHh3rz1i129/bQfh9x7pO1SBdR7l5lf5/RYMDfff3rOFVlOBhgVKlPTyF3lusmKQqwlgoYnpygqjnClSVFr0d9/z6DW7cIo9FyoFltGFcrmY+zl8VGM0bc7i5XbtygeP55XO4DU5AxBikKwmiE29uj/NSnUkRqF/k4JhbLq8t+52ZTp1PCcJh6/jarkXtxvKe8epXy+eefVrN/npwD7xOeKvOBECIpBHY6GzO42DRLLbeDXDRYi1ibhjgbMjhp5zSL4ACmqmgePWLwox/hR6P1hdkcVt3uLns3btA7OppfWgIPoxFufz8Z3JoLyFjXhNEIU1WPg2uMlEdHlAcH6wNdpbJM06oWvJ0WibVpPFJVKafz8Y3Ak9K8bs8zOjFmPq9LBtf6oypxPCY2zeWz1idlQDUVKlUFC8WKQxVtGsRaZvfuMbh1C396utaiop1I7d24gXzxi8mbVDN4XaNNQ/PoEfaZZygODzdicM3Dh2kiWdfn4HE2I4xG2J0ddr785fO4vhK3ZXGQv3i8Gt9XenMgjUNjJIxGxNksgasqcTLBn57iRyNMO95eN8VIjBF/ekqcTLLBZfAwHOKHw5RQQlhODJdlrYuOV8/n4XEYDomTSVZ7jEny4ZDZ/fvUH3yQZuPrtvaqonPtGr4FjzGpPUwm+MEAPxikQX+3u/YKVmOkGQxo+n3CeLyg9rqmOT5Gvac4OJinvEWDmuvhAo3IypT6sYlFjMz6ffzJyYKrxUg4O4P9fdT7lFRWd4jyfsn5CV0+BpocNgXwqoTcgwc433+bTtk+PqaeTpPvi3MU+/vsfPWrRGuZvPdeSn2ral88bof4C1S1/8naaq/Ov0Og95nPcOUrX2H89tsY53BhNuPk7bc5ODqi/847/OGnP0U6nSd65m0xctk1nU759GTC7osvMvzlLwmzGc4Dw9EIGY0YnJzw7niMy4H/QsmflIwhTKc8Mxhw9eSE4XCIB1wwhn6/z+zOHR4dH/OB9xQ5/K1rLIIIjfe8cnzM7M4d+v0+wRjkC9vb+vlejz3nGIXAWQhr9fGWVJVta9m1loH33B6PcQr+N+OxC6pYETbTICeKJMu3yXUbA/QNUIroJoEh7zaf4/Qd8L7AoRVRSVFlc+jJDTWoisLvHfBzgddFRC9zmTUyoHm8+nMD/EAhoGpZz9zvMlJUrabA959O4Z0I/QgHskmVz9EhQl/hF86IjFX1blQ9EJFWA5vQvSISVNUBd43I2KmqB96M8Bqqi3vr6ybJ6wO8qareHpYlJIt/FniBnB5IbrmuTxCYAAPgPxS+A0xcTn1e4b+BRlKCal+VWBdpFqoG3sp4uJxrZ8CUxN2UzVh9W1/UGQ+X3/JpgBNgBBQbBG+Afv7OpbNqzMBDoLNB8ClwCsQ0gdR2m53TDN5w8YbR01K73hg4lRRs0jNXY1Ri/IgkfY4Dawc3JAHHTV1rUVU4r5qahGRso4U/r5skrz+WssSrzg0OkhWOMoebBK/bEy6cTwoaklrs4/etjU4zTgJfqL4D8BHJ1TZFH2WcBL4w6g4ka9wk+HgJfOEtgUjyQ8emslpaf/6cXVy+OCNZ/WWbw08D2q43Y8GYXVzerm7WBHgRNUtb40ZkcetZYLPVs7ZvPABy2aui66KLMMSIzDd3XH5vdVMRJqjO353YxH7tE9GfAH9rxUpSaRd6AAAAAElFTkSuQmCC")} +.right-rail{flex-basis:268px;min-width:253px} +.master-workarea{padding:4px;gap:4px;min-height:0} +.master-left{width:132px;flex:1 1 132px;min-width:112px;padding:0;overflow:hidden;gap:0;border-radius:2px; + background:linear-gradient(90deg,#1e303d,#141e26 47%,#1c2934)} +.master-right{width:100px;flex:0 0 100px} +.master-ch-id{height:35px;flex:0 0 35px;display:grid;place-items:center; + color:#f8f3f3;font:600 15px 'Segoe UI';letter-spacing:1px;border-top:2px solid #f4858d; + background:linear-gradient(120deg,#a12e37,#5e1926 58%,#3c121b);text-shadow:0 1px 2px #000d} +.master-fx-rack{height:163px;flex:0 0 163px;display:flex;flex-direction:column;gap:4px;padding:7px 4px; + border-bottom:2px solid #04090d;background:linear-gradient(#111b22,#18232d)} +.master-fx-title{height:12px;flex:0 0 12px;font:600 8px Consolas,monospace;color:#a1d9eb;letter-spacing:.3px} +.master-fx-slot{height:22px;flex:0 0 22px;display:flex;min-width:0;gap:2px} +.master-insert{min-width:0;flex:1 1 0;padding:0 4px;color:#c7dce8;overflow:hidden; + text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid #061219;border-radius:2px; + background:linear-gradient(#293b45,#111d25);font:500 9px 'Segoe UI';cursor:pointer} +.master-insert.empty{color:#6ed0ea;background:linear-gradient(#14232d,#0b171f)} +.master-insert:hover{filter:brightness(1.13)} +.master-insert .insert-name{overflow:hidden;display:block;text-overflow:ellipsis} +.master-fx-power{width:19px;flex:0 0 19px;padding:0;border-radius:2px; + border:1px solid #14656a;background:linear-gradient(#28535a,#092a31);color:#7cfce3; + font:700 13px 'Segoe UI';cursor:pointer} +.master-fx-slot.is-bypassed .master-insert{opacity:.57} +.master-fx-power.is-bypassed{color:#8697a3;background:linear-gradient(#2b363a,#15212a);border-color:#334854} +.master-meter-info{height:174px;flex:0 0 174px;padding:10px 8px 6px;border-bottom:1px solid #060c11; + background:linear-gradient(#1f2e38,#121d26)} +.master-info-kicker{color:#85c7dc;font:700 9px 'Segoe UI';letter-spacing:.3px;margin-bottom:13px} +.master-info-kicker span{color:#caae64;font:700 8px Consolas,monospace;float:right} +.master-info-row{display:flex;align-items:center;justify-content:space-between; + font:600 10px Consolas,monospace;color:#93b0be;margin-bottom:12px;gap:5px} +.master-info-row strong{color:#edda8c;font:600 14px Consolas,monospace} +.master-info-note{font:8px Consolas,monospace;color:#7c93a0;letter-spacing:0;white-space:nowrap} +.master-action-space{height:82px;flex:0 0 82px;display:flex;flex-direction:column; + align-items:center;justify-content:center;gap:8px;border-bottom:1px solid #091117; + color:#72bdd5;font:600 10px 'Segoe UI'} +.master-stereo-symbol{color:#3da1bd;font-size:14px} +.master-db{height:35px;flex:0 0 35px;display:grid;place-items:center; + color:#f5db8a;background:linear-gradient(#1e2c35,#101a23);font:700 12px Consolas,monospace} +.master-fader-zone{flex:1;min-height:95px;display:flex;gap:2px;padding:7px 4px 5px; + border-top:1px solid #43515d;background:linear-gradient(90deg,#1a2730,#131e25,#23303a)} +.master-fader-zone .scale{width:18px;flex:0 0 18px;font-size:8px} +.master-fader-zone .fader{flex:1;min-width:29px} +.master-fader-zone .fader .cap{ + background-image:var(--master-cap-asset)!important;background-repeat:no-repeat!important; + background-position:center!important;background-size:31px 90px!important; +} +.master-fader-zone .meter-unit{min-width:10px;width:11px;flex:0 0 11px} +.master-fader-zone .meter-unit .meter{width:100%;min-width:0} +.master-fader-zone .meter-channel-label{font:700 8px Consolas,monospace;color:#9bcadd} +.master-tools{height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center; + background:linear-gradient(#202d36,#101922);border-top:1px solid #40515b} +.master-tools button{font:600 9px 'Segoe UI';padding:5px 8px;color:#a9dbea; + border:1px solid #3c5d6a;border-radius:3px;background:linear-gradient(#264555,#122a35); + cursor:pointer} +.master-tools button:hover{filter:brightness(1.14)} +.master-left .master-fader-label{height:72px;min-height:72px;flex:0 0 72px;margin-top:0; + display:grid;place-items:center;border-top:3px solid #be3b46;color:#fce4e4; + background:linear-gradient(135deg,#5a212b,#25171d 80%)!important;font-size:11px} +/* Channel and master meters: subtle industrial scale + red peak-hold + click-reset CLIP LED. */ +.scale{background:repeating-linear-gradient(to bottom,#607482aa 0 1px,transparent 1px 10px) right 2px top / 5px 100% no-repeat} +.meter{overflow:visible} +.meter .meter-fill{bottom:2px;max-height:calc(100% - 14px)} +.meter .clip-led{position:absolute;top:3px;left:1px;right:1px;width:calc(100% - 2px);height:8px; + border:1px solid #54616c;border-radius:2px;z-index:4;cursor:pointer;padding:0; + background:linear-gradient(#45484c,#161d23);box-shadow:inset 0 1px #c8d3db56,0 1px 1px #0009} +.meter .clip-led.latched{background:linear-gradient(#ffb4a1,#ee4139 46%,#86121b); + border-color:#f85a58;box-shadow:0 0 5px #ec343a88,inset 0 1px #fff8} +.meter .meter-peak{position:absolute;z-index:3;left:1px;right:1px;height:2px; + background:#fb5b50;box-shadow:0 0 2px #f54a56aa;pointer-events:none} +.meter-unit{position:relative;display:flex;flex-direction:column;min-height:0} +.meter-unit .meter{height:100%;flex:1;min-height:0} + +/* Full-height selected strip: thin tinted outline, no disruptive thick border. */ +.strip.selected{box-shadow:inset 2px 0 #e2a86a,inset -2px 0 #e2a86a,inset 0 0 0 1px #e2a86a6c} +.strip.selected::before{content:"";position:absolute;inset:0;border-top:1px solid #f4ce8b6b; + border-bottom:2px solid #db935c;pointer-events:none;z-index:6} +.strip.selected .strip-name{box-shadow:inset 0 0 0 1px #ffd79f40} +.strip .rack .insert-slot .insert:hover{color:#dff4fd!important} +.strip .rack .insert-slot .insert-name{letter-spacing:-.15px} + +/* Align master slider band to input faders across EASY and PRO. + * Master-side tabs occupy 40px, so compensate through region heights. */ +.app.easy .master-fx-rack{height:132px;flex:0 0 132px;padding:5px 4px;gap:3px} +.app.easy .master-fx-rack .master-fx-slot:last-child{display:none} +.app.easy .master-fx-rack .master-fx-slot{height:22px;flex-basis:22px} +.app.easy .master-meter-info{height:84px;flex:0 0 84px;padding:5px 7px 3px} +.app.easy .master-info-kicker{font-size:8px;margin-bottom:5px} +.app.easy .master-info-row{font-size:9px;margin-bottom:5px} +.app.easy .master-info-row strong{font-size:12px} +.app.easy .master-info-note{font-size:7px} +.app.easy .master-action-space{height:39px;flex:0 0 39px;flex-direction:row;gap:5px;font-size:9px} +.app.easy .master-stereo-symbol{font-size:10px} +.app:not(.easy) .master-meter-info{height:150px;flex:0 0 150px} +.app:not(.easy) .master-info-kicker{margin-bottom:9px} +.app:not(.easy) .master-info-row{margin-bottom:8px} +.app:not(.easy) .master-action-space{height:66px;flex:0 0 66px} + +/* Master add-slot uses one leading plus icon, matching channel strips. */ +.master-insert.empty{display:flex;align-items:center;gap:3px} +.master-insert-add{color:#75d4e9;font:700 12px/1 Consolas,monospace;flex:0 0 auto} +.master-insert.empty .insert-name{min-width:0;white-space:nowrap} + +/* v0.6 MASTER-IN-STRIP: all thirteen strips share identical vertical bands. */ + +.mixer{gap:0} +.strip.master-strip{--ch:#a32836;flex:0 0 138px;min-width:138px;max-width:138px} +#masterLeft{display:flex;flex-direction:column;height:100%;padding:0;margin:0;overflow:hidden;border-left:2px solid #4c5962} +#masterLeft .master-ch-id{height:35px;flex:0 0 35px;border-top:2px solid #f18a97;border-bottom:2px solid #070b10;letter-spacing:.45px} +#masterLeft .master-fx-rack, +.app.easy #masterLeft .master-fx-rack,.app:not(.easy) #masterLeft .master-fx-rack{ + height:163px;flex:0 0 163px;padding:7px 4px;gap:4px;display:flex;flex-direction:column} +#masterLeft .master-fx-slot{flex:0 0 25px;height:25px;min-height:25px} +#masterLeft .master-fx-rack .master-insert{font-size:9px;line-height:1.1} +#masterLeft .master-controls-zone{height:215px;flex:0 0 215px;display:flex;flex-direction:column;align-items:stretch;padding:0 5px} +#masterLeft .master-analysis{flex:0 0 91px;height:91px;margin:5px 0 2px;padding:5px 7px;background:#0e1c26;border:1px solid #314451;border-radius:2px} +#masterLeft .master-analysis .master-info-kicker{font:600 8px Consolas,monospace;margin:0 0 7px;white-space:nowrap} +#masterLeft .master-analysis .master-info-row{font:9px Consolas,monospace;margin:0 0 6px;line-height:13px} +#masterLeft .master-analysis .master-info-row strong{font:600 11px Consolas,monospace} +#masterLeft .master-pan-wrap{flex:0 0 76px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0} +#masterLeft .master-pan-wrap .knob-label{margin:2px 0 0} +#masterLeft .pan-control{width:100%;padding:0 8px} +#masterLeft .master-monitor-label{margin-top:auto;margin-bottom:7px;text-align:center;letter-spacing:.8px;font:700 9px Consolas,monospace;color:#8ccada} +#masterLeft .master-actions{height:41px;flex:0 0 41px;gap:4px} +#masterLeft .master-actions button{font-size:9px} +#masterLeft .master-actions #masterMute.active{background:var(--skin-small-mute) center/100% 100% no-repeat!important;color:white!important} +#masterLeft .master-db{height:35px;flex:0 0 35px;background:linear-gradient(#192b34,#0c1921);font:700 12px Consolas,monospace;color:#e9c680} +#masterLeft .master-fader-zone{flex:1 1 auto;min-height:90px;height:auto;gap:3px;padding:4px 5px 7px;display:flex;background:linear-gradient(90deg,#1e2931,#111a21 10%,#202b32 60%,#111b23)} +#masterLeft .master-fader-zone .scale{width:18px;flex:0 0 18px;font-size:8px} +#masterLeft .master-fader-zone .fader{flex:1 1 auto;min-width:31px} +#masterLeft .master-fader-zone .fader .cap{background-image:var(--master-cap-asset)!important;background-repeat:no-repeat!important;background-position:center top!important;background-size:31px 90px!important} +#masterLeft .master-fader-zone .meter-unit{min-width:11px;width:11px;flex:0 0 11px;position:relative} +#masterLeft .master-fader-zone .meter-unit .meter{min-width:0;width:100%;height:calc(100% - 11px)} +#masterLeft .master-fader-zone .meter-channel-label{height:10px;line-height:10px;position:absolute;bottom:0;width:100%;text-align:center} +#masterLeft .master-tools{height:40px;flex:0 0 40px;padding:3px 5px;display:flex;gap:4px} +#masterLeft .master-tools button{flex:1 1 0;min-width:0;height:27px;font-size:8px;padding:0 2px;background:var(--skin-small-off) center/100% 100% no-repeat;color:#182b35} +#masterLeft .master-tools button.active{background:var(--skin-small-phase) center/100% 100% no-repeat;color:white} +#masterLeft .master-strip-name{height:72px;flex:0 0 72px;border-top:3px solid #b53648;color:#fff;background:linear-gradient(125deg,#752536,#27131b 85%)!important;gap:9px} +#masterLeft .master-strip-name .track-icon{font-size:15px;line-height:19px} +.strip.selected{box-shadow:inset 2px 0 #f0aa57,inset -2px 0 #f0aa57,inset 0 0 0 1px #eec07988} +.strip.selected::before{content:"";position:absolute;inset:0;z-index:6;pointer-events:none;border:2px solid #eda458;border-radius:2px;box-shadow:inset 0 0 0 1px #f8d79a42,0 0 5px #e59e3960} +.pan-track::after{background:linear-gradient(#eef8ff,#9eb5c2);width:2px;height:18px;top:11px;box-shadow:0 0 1px #fff,0 1px 2px #000} +.pan-track.is-centered::after{background:#ecfbff;box-shadow:0 0 0 1px #27485a,0 0 3px #f8ffff} +/* Keep snap visible through a crisp detent, not a glowing metal slider. */ + + +/* Mode-aware master: exactly the same vertical grid as channel 1. */ +.app.easy #masterLeft .master-fx-rack{height:130px;flex:0 0 130px;padding:5px 4px;gap:2px} +.app.easy #masterLeft .master-fx-slot{height:22px;min-height:22px;flex:0 0 22px} +.app.easy #masterLeft .master-fx-slot:last-child{display:none} +.app.easy #masterLeft .master-controls-zone{height:127px;flex:0 0 127px;justify-content:flex-start;padding-top:5px} +.app:not(.easy) #masterLeft .master-controls-zone{height:212px;flex:0 0 212px;justify-content:center} +#masterLeft .master-controls-zone .master-pan-wrap{flex:0 0 63px} +#masterLeft .master-controls-zone .master-monitor-label{display:none} +.app.easy #masterLeft .master-tools{height:31px;flex:0 0 31px} +.app.easy #masterLeft .master-strip-name{height:61px;flex:0 0 61px} +#masterLeft .master-fader-zone{position:relative;padding-bottom:70px} +#masterLeft .master-analysis{ + position:absolute;left:4px;right:4px;bottom:3px;height:64px;min-height:64px; + margin:0;padding:3px 7px;background:linear-gradient(#152735,#091721); + border:1px solid #324a59;border-radius:2px; + box-shadow:inset 0 1px #6d929f48,0 -1px 4px #0007;z-index:2} +#masterLeft .master-analysis .master-info-kicker{font-size:8px;margin:0 0 3px} +#masterLeft .master-analysis .master-info-row{line-height:10px;font-size:9px;margin:0 0 3px} +#masterLeft .master-analysis .master-info-row strong{font-size:10px} + +/* Master output is an identity chip, not a dummy routing action. */ +#masterLeft .master-stereo-badge{ + flex:1 1 0;min-width:0;height:29px;display:grid;place-items:center; + font:600 9px 'Segoe UI',sans-serif;letter-spacing:.5px; + background:linear-gradient(#293944,#15232e 54%,#233541); + border:1px solid #394d58;border-radius:3px;color:#9acada; + box-shadow:inset 0 1px #7e9fad39; +} +#masterLeft .master-route-label{ + flex:1 1 0;display:grid;place-items:center;color:#d3f2fc; + font:600 9px Consolas,monospace;letter-spacing:.1px; + border:1px solid #205d7f;background:linear-gradient(#164661,#0c263d); + border-radius:2px;min-width:0;white-space:nowrap; +} +#masterLeft .master-strip-name .track-icon{display:grid;place-items:center} + + +/* Premium console v0.7 — six visible VST insert slots per strip, shared geometry. */ +.strip .rack,.app.easy .strip .rack,.app:not(.easy) .strip .rack, +#masterLeft .master-fx-rack,.app.easy #masterLeft .master-fx-rack,.app:not(.easy) #masterLeft .master-fx-rack{ + height:196px;flex:0 0 196px;min-height:196px;gap:4px;padding:7px 4px;overflow:hidden; + display:flex;flex-direction:column +} +.strip .rack .insert-slot,#masterLeft .master-fx-slot, +.app.easy #masterLeft .master-fx-slot{ + height:27px;min-height:27px;flex:0 0 27px;max-height:27px;gap:2px; +} +.app.easy #masterLeft .master-fx-slot:last-child{display:flex} +.strip .rack .insert-slot .insert{height:27px;min-height:27px} +.strip .rack .insert-slot .fx-power{height:27px;min-height:27px} +#masterLeft .master-fx-power{height:27px} +#masterLeft .master-insert{height:27px;min-height:27px} +#masterLeft .master-controls-zone{justify-content:center;align-items:stretch;gap:2px} +.app.easy #masterLeft .master-controls-zone{justify-content:center;padding-top:0} +#masterLeft .master-controls-zone .master-pan-wrap{flex:0 0 56px;min-height:56px;margin:0;padding:0} +#masterLeft .master-controls-zone .master-analysis{ + position:static;flex:0 0 55px;height:55px;min-height:55px;width:100%; + padding:3px 7px;margin:0;border-radius:2px; +} +#masterLeft .master-controls-zone .master-analysis .master-info-kicker{margin:0 0 3px} +#masterLeft .master-controls-zone .master-analysis .master-info-row{margin:0 0 3px;line-height:9px;font-size:9px} +#masterLeft .master-controls-zone .master-analysis .master-info-row strong{font-size:10px} +#masterLeft .master-fader-zone{padding-bottom:7px} +#masterLeft .master-fader-zone .meter-unit .meter{height:calc(100% - 11px)} +/* PAN numeric readouts replace a redundant PAN heading and make L / R explicit. */ +.pan-control{gap:0} +.pan-control .pan-readline{width:100%;padding:0 6px;margin:-2px 0 0;display:grid;align-items:center; + grid-template-columns:18px minmax(0,1fr) 18px;height:16px;line-height:16px; + font:700 9px Consolas,monospace;color:#7fa6bb} +.pan-control .pan-readline strong{font:700 10px Consolas,monospace;color:#8be2f5; + text-align:center;white-space:nowrap} +.pan-control .pan-readline span:first-child{text-align:left} +.pan-control .pan-readline span:last-child{text-align:right} +#masterLeft .pan-control{padding:0 5px} +/* The master selected state reuses the same 2px uninterrupted outline as inputs. */ +#masterLeft.selected{box-shadow:inset 2px 0 #f0aa57,inset -2px 0 #f0aa57,inset 0 0 0 1px #eec07988} +#masterLeft.selected::before{content:"";position:absolute;inset:0;z-index:6; + pointer-events:none;border:2px solid #eda458;border-radius:2px; + box-shadow:inset 0 0 0 1px #f8d79a42,0 0 5px #e59e3960} +/* On shorter desktops prioritize six FX while retaining a usable fader throw. */ +@media (max-height:760px){ + .strip .rack,.app.easy .strip .rack,.app:not(.easy) .strip .rack, + #masterLeft .master-fx-rack,.app.easy #masterLeft .master-fx-rack,.app:not(.easy) #masterLeft .master-fx-rack{height:172px;flex-basis:172px;min-height:172px;gap:2px;padding:5px 4px} + .strip .rack .insert-slot,#masterLeft .master-fx-slot,.app.easy #masterLeft .master-fx-slot{height:25px;min-height:25px;flex-basis:25px} + .strip .rack .insert-slot .insert,.strip .rack .insert-slot .fx-power, + #masterLeft .master-insert,#masterLeft .master-fx-power{height:25px;min-height:25px} +} + +/* Geometry correction measured by Chromium: EASY master controls need 94px, + not 127px, when both channel and master FX racks are the same height. */ +.app.easy #masterLeft .master-controls-zone{height:94px;flex:0 0 94px;min-height:94px; + padding:0 5px;gap:0;justify-content:flex-start} +.app.easy #masterLeft .master-controls-zone .master-analysis, +#masterLeft .master-controls-zone .master-analysis{ + height:38px;min-height:38px;flex:0 0 38px;padding:1px 5px;margin:0;overflow:hidden +} +#masterLeft .master-controls-zone .master-analysis .master-info-kicker{font:600 8px/9px Consolas,monospace;margin:0} +#masterLeft .master-controls-zone .master-analysis .master-info-row{font:9px/9px Consolas,monospace;margin:0;min-height:9px} +#masterLeft .master-controls-zone .master-analysis .master-info-row strong{font:600 10px/9px Consolas,monospace} +#masterLeft .master-controls-zone .master-pan-wrap{flex:0 0 56px;min-height:56px;max-height:56px} From 962a33c929c940c2daded03dbac983fa868be141 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 25 Oct 2026 12:39:49 +0700 Subject: [PATCH 2/4] fix(ui parity): embed exact canonical premium mixer JS in standalone offline preview --- AR-MIX-Live-FX-Host-Standalone-v0.3.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AR-MIX-Live-FX-Host-Standalone-v0.3.html b/AR-MIX-Live-FX-Host-Standalone-v0.3.html index 151c38399..a91e1fb00 100644 --- a/AR-MIX-Live-FX-Host-Standalone-v0.3.html +++ b/AR-MIX-Live-FX-Host-Standalone-v0.3.html @@ -900,7 +900,7 @@ }); document.addEventListener('keydown',e=>{if(e.ctrlKey&&e.key.toLowerCase()==='s'){e.preventDefault();if(persistSession())flash('UI state saved locally');else flash('Browser storage unavailable')}}); let lastMeterFrame=0;function meters(t){ - // Native Windows host owns meters; standalone browser retains preview animation. + // Real JUCE host never runs synthetic meter oscillators. if(window.__JUCE__?.backend?.emitEvent)return; requestAnimationFrame(meters);if(t-lastMeterFrame<33||document.hidden)return;lastMeterFrame=t; channels.forEach((ch,i)=>{const wave=(Math.sin(t*.0022+i*1.92)+Math.sin(t*.0043+i*.6))*.5; From 104a821ea0b17d39755c4326408e0744bbcb2f53 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 25 Oct 2026 12:43:11 +0700 Subject: [PATCH 3/4] docs(landing): distinguish latest premium GUI preview from real experimental Windows P2.5 VST3 build --- site/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/index.html b/site/index.html index 353de0127..b3c4f9ce7 100644 --- a/site/index.html +++ b/site/index.html @@ -5,8 +5,8 @@ -
-
LIVE AUDIO · VST FX · DIGITAL CONSOLE

The next-generation live mixing workspace.

A precision-focused digital mixer UI for live vocals, karaoke, and streaming. Explore channel strips, real console controls, effect chains and professional signal flow in the interactive browser prototype.

GUI preview availableWindows-native engine in developmentOpen source
+
+
LIVE AUDIO · VST FX · DIGITAL CONSOLE

The next-generation live mixing workspace.

A precision-focused digital mixer UI for live vocals, karaoke, and streaming. Explore the premium mixer layout in the browser, or try the separate native JUCE/VST3 Windows build. Browser preview is visual only; the native experimental build processes actual audio.

GUI preview availableWindows VST3 engine P2.5 candidateOpen source
ArSonMix48 kHz  |  DIGITAL MIXER
@@ -17,5 +17,5 @@
Metal faders · Tactile buttons · Interactive FX chain
-
EXPLORE THE CONSOLE

Built around a practical live workflow

Open full console →
⌁

Professional mixer surface

Channel faders, pan, routing, meters, and tactile MUTE/SOLO/HPF states inspired by physical consoles.

≋

FX chain workflow

Explore racks, plugin browser and signal flow. The browser version is a UI prototype, not a real-time audio engine.

◉

Continuously updated GUI

The preview is rebuilt from the current development HTML by GitHub Actions. Check version and reload from the preview header.

-
\ No newline at end of file +
EXPLORE THE CONSOLE

Built around a practical live workflow

Open full console →
⌁

Professional mixer surface

Channel faders, pan, routing, meters, and tactile MUTE/SOLO/HPF states inspired by physical consoles.

≋

FX chain workflow

Explore racks, plugin browser and signal flow. The browser preview is visual only. Windows CI artifacts contain the separate experimental VST3 engine with FabFilter/RX inserts, native Channel 1 and preset recall.

◉

Continuously updated GUI

The preview is rebuilt from the current development HTML by GitHub Actions. Check version and reload from the preview header.

+
\ No newline at end of file From 351eb79bd8df775aadb4810c1cf53f7410cea411 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 25 Oct 2026 12:45:01 +0700 Subject: [PATCH 4/4] docs(repo): promote accurate current P2.5 + premium GUI README while preserving complete historical narrative --- README.md | 112 +++++-------------- docs/HISTORICAL_README_PRE_RECONCILIATION.md | 104 +++++++++++++++++ 2 files changed, 135 insertions(+), 81 deletions(-) create mode 100644 docs/HISTORICAL_README_PRE_RECONCILIATION.md diff --git a/README.md b/README.md index 789261919..1ae03bea7 100644 --- a/README.md +++ b/README.md @@ -1,104 +1,54 @@ -# ArSonMix — Live VST3 Host +# ArSonMix -**Current integration candidate (25 October 2026): P2.5 live preset graph + latest v0.5 premium mixer GUI.** Desktop Windows x64 / JUCE 8 / ASIO-WASAPI / VST3. The integrated branch is `integration/p25-gui-engine-reconciled`; **the default `main` is older** and must not be treated as the latest native implementation. Code is experimental until Windows hardware tests pass. +**Open-source live VST3 host with a premium virtual digital mixer interface.** Built for Windows live vocal, karaoke and streaming workflows, with a JUCE C++20 audio engine and a WebView2 console UI. -- [Integrated Windows builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml?query=branch%3Aintegration%2Fp25-gui-engine-reconciled) — download EXE artifact from a successful run. -- [Integration PR](https://github.com/masarray/arsonmix/pulls) and [progress reconciliation ledger](docs/PROGRESS_RECONCILIATION_2026-10-25.md). -- [Premium GUI reference branch](https://github.com/masarray/arsonmix/tree/fix/fader-thumb-symmetry-polish) is archived by branch and imported to the integration source; static browser demo is not a VST host. -- [Latest native engine reference](https://github.com/masarray/arsonmix/tree/feature/p25-live-preset-graph-swap), including real FabFilter/RX compatibility and experimental buffer-boundary preset graph handoff. +[Premium browser GUI preview](site/preview/index.html) · [Experimental Windows EXE builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml?query=branch%3Aintegration%2Fp25-gui-engine-reconciled) · [Progress & release status](docs/PROGRESS_RECONCILIATION_2026-10-25.md) · [ARD](docs/ARD_AR_MIX_LIVE_FX_HOST_v0.3.md) -**Actual native status:** Channel 1 stereo path, native VST3 rack/catalog/scan/import, FabFilter and iZotope RX were confirmed to INSERT on user hardware, native VU and PAN, FX bypass, native `.armix` snapshots, experimental Live Recall. **Not yet native:** Channels 2–12, master inserts, master PAN, routing to independent streaming/recording buses, LUFS/true peak. Browser-only session controls are not native persistence. SAVE is muted-only and structure ADD/REMOVE/REORDER still detaches callback. +## Current development baseline · 25 October 2026 -## Historical roadmap and previous implementation notes +| Area | Working development scope | Important limit | +|---|---|---| +| GUI & UX | Latest tactile/metallic v0.5 PC console design, channel identity editor (name/icon/color), PAN snapping, red Master fader, peak-hold & clip LEDs | Browser-only UI controls are not proof of audio DSP functionality | +| Audio | JUCE native callback, Windows ASIO/WASAPI device selection, auto output routing, real meters, PAN, channel/master faders and MUTE | Real processing currently uses **Channel 1 stereo**; input strips 2–12 are previews | +| VST3 | Scan/import/catalog, insert/editor, atomic bypass and diagnostic messages | FabFilter and iZotope RX were confirmed loading on prior P2.4.1 hardware; retest integrated build | +| Presets | Native `.armix` ZIP + vendor binary plugin state, FX order/bypass, Channel 1/master gain and PAN | Save requires muted output; presets depend on locally installed VST3 files | +| Live recall | Experimental P2.5 prepared graph, callback-boundary de-click fade, deferred plugin retirement | Not seamless dual-graph crossfade. FX ADD/REMOVE/REORDER still detach callback | +| Master | Real Master level/MUTE plus independent L/R meters | Master FX inserts, master PAN, LUFS-I and dBTP **not native**; visual previews/placeholder fields | +| Routing | Functional Channel 1 to selected hardware output | No true independent 12-channel, streaming/record buses or automatic loopback setup yet | -The text below documents the development progression. Historical "source-only" or v0.3 statements are superseded by the above current status, not a description of this integration branch. +The canonical reconciliation source is **`integration/p25-gui-engine-reconciled`**, preserving both the best [GUI branch](https://github.com/masarray/arsonmix/tree/fix/fader-thumb-symmetry-polish) and the advanced [P2.5 engine branch](https://github.com/masarray/arsonmix/tree/feature/p25-live-preset-graph-swap). The default `main` and all earlier draft PRs have intentionally **not** been overwritten. ---- -# AR MIX Studio — Open-Source Live FX Host (v0.3 UI & Architecture) +## Try it -**Status: P1 experimental native Windows first-sound implementation (pending CI/hardware verification) + v0.3 UI demo.** +**Visual preview:** open `AR-MIX-Live-FX-Host-Standalone-v0.3.html` directly in a current browser, or use the `site/preview` UI. Browser preview uses animated demonstration meters and dummy FX. It cannot process your microphone. -AR MIX Studio targets live vocal processing for karaoke performers and livestream creators. It is VST3-first: the principal activity is building a beautiful, low-friction FX chain with a digital-console look. The core engine is planned as C++20/JUCE with Windows ASIO/WASAPI; the frontend is a self-contained HTML/CSS/SVG UI embedded in JUCE WebView2. +**Actual Windows audio:** from the linked Windows Actions workflow, open the latest **successful integration-branch run** and download its EXE artifact. Use wired headphones at a low level; configure ASIO/WASAPI; open `MIX → ADD FX` to scan/select your own installed VST3, then edit and bypass it in the rack. The source does **not** redistribute FabFilter, iZotope, or other proprietary plugins. -## Try the current prototype now +For native sound presets, create a sound, mute output and choose `MY SOUNDS → SAVE`. Re-enable output before using experimental `RECALL LIVE`. Check `SIGNAL CHECK` and `audio-diagnostics.log` after a test. Avoid changing audio devices during graph transitions. -Open `AR-MIX-Live-FX-Host-Standalone-v0.3.html` in a current Chrome or Edge browser. No installation or internet access is required. The meters are intentionally **simulated**. Clicking `FX RACK` opens a chain editor: add a *demo* plugin, bypass/reorder/remove it; `MIX` offers faders, pan and MUTE/SOLO; `SIGNAL FLOW` describes the path; `SETUP` previews the driver wizard; `EASY VIEW` toggles Pro controls. Save a local FX chain preset or Mixer Snapshot, and export/import a JSON session file. +This is an **engineering preview**, not qualified for an unattended livestream. Do not equate passing CI with verified dropout-free ASIO/WASAPI or all-plugin compatibility. -**Important:** catalog entries are visual demo effects, not installed VST3 binaries. Nothing will process live audio or activate your mic in this version. The Windows JUCE shell is source-only and has not been compiled/validated on Windows in this environment. +## Building the Windows native app -## Build JUCE WebView2 shell (Windows) - -Prerequisites: Visual Studio 2022 with C++, CMake >=3.22, a local compatible JUCE 8/9 source checkout, and WebView2 runtime. See licenses before distribution. - -```powershell -.\build_windows.ps1 -JuceRoot C:\dev\JUCE -``` - -CMake example: +Requires Visual Studio 2022 C++, CMake 3.22+, compatible JUCE 8, WebView2 and the appropriate ASIO SDK/licensing components. ```powershell cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DJUCE_ROOT="C:/dev/JUCE" cmake --build build --config Release +ctest --test-dir build -C Release --output-on-failure ``` -The shell embeds the same UI through JUCE BinaryData and uses `WebBrowserComponent::withResourceProvider`. `withEventListener("arMixParameter")` only logs events on the **JUCE message thread**. Implement the typed control dispatcher + RT backend before making it process audio. `JUCE_ASIO=1` is **not yet enabled** in this shell; check GPLv3 ASIO SDK compatibility and driver setup as specified in the ARD. - -## C++20 realtime primitives test - -```bash -g++ -std=c++20 -O2 -Wall -Wextra -pedantic -pthread tests/realtime_control_test.cpp -o rt_tests -./rt_tests -``` - -## Files - -- `docs/ARD_AR_MIX_LIVE_FX_HOST_v0.3.md` — full product/technical architecture, RT rules, UX flows, benchmarks, roadmap and risk register. -- `docs/UI_AUDIT_AND_QA_v0.3.md` — source UI audit, fixes and executed smoke test. -- `web/{index.html,styles.css,app.js}` — maintainable UI frontend. -- `AR-MIX-Live-FX-Host-Standalone-v0.3.html` — complete single-file offline trial. -- `src/Main.cpp`, `CMakeLists.txt`, `build_windows.ps1` — native UI host scaffold. -- `engine/core/RealtimeControl.h`, `tests/realtime_control_test.cpp` — tested sample real-time control patterns, not complete DSP. - -## Licensing - -Code in this trial is authored for the project and provided under AGPL-3.0-only to align with JUCE open-source licensing. JUCE, ASIO SDK and VST3 SDK have their own notices and obligations; check exact version and dependency licensing before publishing binaries. No third-party VST binaries or proprietary mixer UI graphics are included. - -## P1 Windows native First Sound - -The new P1 native EXE provides actual microphone passthrough through one VST3 effect, ASIO/WASAPI device selector, bypass, monitor arm/mute, master gain and real callback meter. The old FX rack and channels 2–12 are **still UI previews** (do not confuse demo plugin inserts with native VST3). Output starts muted for hearing/feedback safety. See [P1 trial instructions](docs/P1_FIRST_SOUND.md). - -GitHub Actions: [Windows First Sound builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml). Download the artifact only after the run is GREEN. JUCE 8.0.15 is pinned by CI and includes GPLv3 ASIO SDK sources; this repository uses AGPLv3. Plugin compatibility and low latency must still be verified with real hardware. - -## P2 Native VST3 Catalog and FX Rack - -The native Windows host supports **Scan VST3**, **Add Plugin Folder**, **Import VST3** and a persistent plugin catalog in user app-data. The FX Rack inside WebView2 now controls the **one native stereo audio path** with up to 8 real VST3 effects: add, bypass, reorder, remove and open plugin UI. The Windows audio setup dialog is also native, with saved device configuration. - -All remaining UI preview channels and factory vocal presets are still visual; do not infer that they are running live audio. Legacy VST2 `.dll` is **not** supported or automatically treated as VST3. Plugin scanning uses a worker, but not yet a crash-isolated subprocess; avoid unknown plugins during a livestream. Read [P2 Hardware Trial](docs/P2_NATIVE_FX_RACK.md). - -## P2 DAW UX improvement - -Use MIX → Channel 1 ADD FX to select a real indexed VST3; PLUGINS opens Plugin Manager for scan/import only. Audio Setup now reports loading status and reuses the native selector window. Scan uses real candidate counters and indeterminate discovery stage. See [P2 DAW workflow guide](docs/P2_DAW_WORKFLOW.md). - -## P2.2 Realtime Reliability + latest ArSonMix GUI +The source tree separates `src/` (JUCE native engine, VST3 host, diagnostics and state), `web/` (premium console and native bridge), `engine/core/` (reusable realtime controls), `tests/` (native and visual regressions), `docs/` (ARD and phase guides) and `site/` (browser-only landing/preview). GitHub CI tests both Windows MSVC and Chromium layout independently. -- The live signal is routed automatically on a valid JUCE device; no extra enable gate. Emergency output mute stays in SIGNAL CHECK. -- Real-time health counters: callback processing time, worst processing time, callbacks over 80% or 100% of buffer period, timing gaps, and worst VST3 processing time. -- Persistent bounded rotating log in user app data `AR-MIX-Studio/diagnostics/audio-diagnostics.log`, using a dedicated logger worker (never audio callback). -- Device XML saved upon device change, **not** on a repeating 3-second UI timer. -- Uses current `fix/fader-thumb-symmetry-polish` GUI (ArSonMix, metal controls, horizontal PAN sliders). Audio host code stays isolated. -- Press SIGNAL CHECK → OPEN DIAGNOSTIC LOG to inspect or share diagnostic evidence after reproducing audio stutter. -- Read [P2.2 reliability guide](docs/P2_REALTIME_RELIABILITY.md). +## Planned progression -## P2.3 — Real Live VU + PAN + Instant FX Bypass +1. **P2.5.2** — safe live ADD/REMOVE/REORDER, preparation worker, plugin/device lifecycle and measured crossfade/latency tradeoffs. +2. **P2.6** — actual multichannel input mixer, per-channel VST racks, routing and independent output buses. +3. **P2.7** — complete native session/snapshot persistence, autosave recovery, sound library and beginner-focused flow. +4. Hardware validation and stability gates with common VST3 plugins, including FabFilter/RX, before promoting a qualified release. -- In the native JUCE host, v0.3 sine-wave demonstration meter generator is completely disabled. Only real Channel 1 input and real master output move; other preview channels have no fake audio activity. -- Channel 1 horizontal PAN is connected to the actual stereo output matrix after VST3, with a transparent centre and correlated-stereo-safe extremes. -- Each VST3 insert in the MIX view has a small ⏻ toggle with clear ON/OFF state. Bypass updates the atomic realtime control without rebuilding the plugin graph or leaving the MIX screen. -- Diagnostic health JSON no longer truncates every record at 511 characters; the bounded queue slot is now 4096 bytes, with a truncation counter. -- Windows CI validates the native UI contract and real DSP pan coefficient tests. Hardware verification remains necessary. +For the lineage of all parallel threads and outstanding tests, read [the reconciliation ledger](docs/PROGRESS_RECONCILIATION_2026-10-25.md). Previous README content remains preserved in [historical notes](docs/HISTORICAL_README_PRE_RECONCILIATION.md). -## P2.5.1 — Live preset prepared graph +## License -- Pre-stage plugin binary state before live recall, publish graph at audio callback boundary, retire old graph only after callback acknowledges; de-click buffer fades. -- Does not require MUTE OUTPUT for recall; SAVE still muted-only. Old ADD/REMOVE/REORDER remains callback-detach and should not be used during performance. -- See [P2.5 live recall notes](docs/P25_LIVE_GRAPH_HANDOFF.md). This is not a full seamless dual-DSP crossfade. +Project code is published under AGPL-3.0-only. JUCE, ASIO, VST3 SDK, third-party artwork and plugin licenses are independent and must be reviewed before redistribution; commercial VST binaries are not included. diff --git a/docs/HISTORICAL_README_PRE_RECONCILIATION.md b/docs/HISTORICAL_README_PRE_RECONCILIATION.md new file mode 100644 index 000000000..789261919 --- /dev/null +++ b/docs/HISTORICAL_README_PRE_RECONCILIATION.md @@ -0,0 +1,104 @@ +# ArSonMix — Live VST3 Host + +**Current integration candidate (25 October 2026): P2.5 live preset graph + latest v0.5 premium mixer GUI.** Desktop Windows x64 / JUCE 8 / ASIO-WASAPI / VST3. The integrated branch is `integration/p25-gui-engine-reconciled`; **the default `main` is older** and must not be treated as the latest native implementation. Code is experimental until Windows hardware tests pass. + +- [Integrated Windows builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml?query=branch%3Aintegration%2Fp25-gui-engine-reconciled) — download EXE artifact from a successful run. +- [Integration PR](https://github.com/masarray/arsonmix/pulls) and [progress reconciliation ledger](docs/PROGRESS_RECONCILIATION_2026-10-25.md). +- [Premium GUI reference branch](https://github.com/masarray/arsonmix/tree/fix/fader-thumb-symmetry-polish) is archived by branch and imported to the integration source; static browser demo is not a VST host. +- [Latest native engine reference](https://github.com/masarray/arsonmix/tree/feature/p25-live-preset-graph-swap), including real FabFilter/RX compatibility and experimental buffer-boundary preset graph handoff. + +**Actual native status:** Channel 1 stereo path, native VST3 rack/catalog/scan/import, FabFilter and iZotope RX were confirmed to INSERT on user hardware, native VU and PAN, FX bypass, native `.armix` snapshots, experimental Live Recall. **Not yet native:** Channels 2–12, master inserts, master PAN, routing to independent streaming/recording buses, LUFS/true peak. Browser-only session controls are not native persistence. SAVE is muted-only and structure ADD/REMOVE/REORDER still detaches callback. + +## Historical roadmap and previous implementation notes + +The text below documents the development progression. Historical "source-only" or v0.3 statements are superseded by the above current status, not a description of this integration branch. + +--- +# AR MIX Studio — Open-Source Live FX Host (v0.3 UI & Architecture) + +**Status: P1 experimental native Windows first-sound implementation (pending CI/hardware verification) + v0.3 UI demo.** + +AR MIX Studio targets live vocal processing for karaoke performers and livestream creators. It is VST3-first: the principal activity is building a beautiful, low-friction FX chain with a digital-console look. The core engine is planned as C++20/JUCE with Windows ASIO/WASAPI; the frontend is a self-contained HTML/CSS/SVG UI embedded in JUCE WebView2. + +## Try the current prototype now + +Open `AR-MIX-Live-FX-Host-Standalone-v0.3.html` in a current Chrome or Edge browser. No installation or internet access is required. The meters are intentionally **simulated**. Clicking `FX RACK` opens a chain editor: add a *demo* plugin, bypass/reorder/remove it; `MIX` offers faders, pan and MUTE/SOLO; `SIGNAL FLOW` describes the path; `SETUP` previews the driver wizard; `EASY VIEW` toggles Pro controls. Save a local FX chain preset or Mixer Snapshot, and export/import a JSON session file. + +**Important:** catalog entries are visual demo effects, not installed VST3 binaries. Nothing will process live audio or activate your mic in this version. The Windows JUCE shell is source-only and has not been compiled/validated on Windows in this environment. + +## Build JUCE WebView2 shell (Windows) + +Prerequisites: Visual Studio 2022 with C++, CMake >=3.22, a local compatible JUCE 8/9 source checkout, and WebView2 runtime. See licenses before distribution. + +```powershell +.\build_windows.ps1 -JuceRoot C:\dev\JUCE +``` + +CMake example: + +```powershell +cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DJUCE_ROOT="C:/dev/JUCE" +cmake --build build --config Release +``` + +The shell embeds the same UI through JUCE BinaryData and uses `WebBrowserComponent::withResourceProvider`. `withEventListener("arMixParameter")` only logs events on the **JUCE message thread**. Implement the typed control dispatcher + RT backend before making it process audio. `JUCE_ASIO=1` is **not yet enabled** in this shell; check GPLv3 ASIO SDK compatibility and driver setup as specified in the ARD. + +## C++20 realtime primitives test + +```bash +g++ -std=c++20 -O2 -Wall -Wextra -pedantic -pthread tests/realtime_control_test.cpp -o rt_tests +./rt_tests +``` + +## Files + +- `docs/ARD_AR_MIX_LIVE_FX_HOST_v0.3.md` — full product/technical architecture, RT rules, UX flows, benchmarks, roadmap and risk register. +- `docs/UI_AUDIT_AND_QA_v0.3.md` — source UI audit, fixes and executed smoke test. +- `web/{index.html,styles.css,app.js}` — maintainable UI frontend. +- `AR-MIX-Live-FX-Host-Standalone-v0.3.html` — complete single-file offline trial. +- `src/Main.cpp`, `CMakeLists.txt`, `build_windows.ps1` — native UI host scaffold. +- `engine/core/RealtimeControl.h`, `tests/realtime_control_test.cpp` — tested sample real-time control patterns, not complete DSP. + +## Licensing + +Code in this trial is authored for the project and provided under AGPL-3.0-only to align with JUCE open-source licensing. JUCE, ASIO SDK and VST3 SDK have their own notices and obligations; check exact version and dependency licensing before publishing binaries. No third-party VST binaries or proprietary mixer UI graphics are included. + +## P1 Windows native First Sound + +The new P1 native EXE provides actual microphone passthrough through one VST3 effect, ASIO/WASAPI device selector, bypass, monitor arm/mute, master gain and real callback meter. The old FX rack and channels 2–12 are **still UI previews** (do not confuse demo plugin inserts with native VST3). Output starts muted for hearing/feedback safety. See [P1 trial instructions](docs/P1_FIRST_SOUND.md). + +GitHub Actions: [Windows First Sound builds](https://github.com/masarray/arsonmix/actions/workflows/p1-windows.yml). Download the artifact only after the run is GREEN. JUCE 8.0.15 is pinned by CI and includes GPLv3 ASIO SDK sources; this repository uses AGPLv3. Plugin compatibility and low latency must still be verified with real hardware. + +## P2 Native VST3 Catalog and FX Rack + +The native Windows host supports **Scan VST3**, **Add Plugin Folder**, **Import VST3** and a persistent plugin catalog in user app-data. The FX Rack inside WebView2 now controls the **one native stereo audio path** with up to 8 real VST3 effects: add, bypass, reorder, remove and open plugin UI. The Windows audio setup dialog is also native, with saved device configuration. + +All remaining UI preview channels and factory vocal presets are still visual; do not infer that they are running live audio. Legacy VST2 `.dll` is **not** supported or automatically treated as VST3. Plugin scanning uses a worker, but not yet a crash-isolated subprocess; avoid unknown plugins during a livestream. Read [P2 Hardware Trial](docs/P2_NATIVE_FX_RACK.md). + +## P2 DAW UX improvement + +Use MIX → Channel 1 ADD FX to select a real indexed VST3; PLUGINS opens Plugin Manager for scan/import only. Audio Setup now reports loading status and reuses the native selector window. Scan uses real candidate counters and indeterminate discovery stage. See [P2 DAW workflow guide](docs/P2_DAW_WORKFLOW.md). + +## P2.2 Realtime Reliability + latest ArSonMix GUI + +- The live signal is routed automatically on a valid JUCE device; no extra enable gate. Emergency output mute stays in SIGNAL CHECK. +- Real-time health counters: callback processing time, worst processing time, callbacks over 80% or 100% of buffer period, timing gaps, and worst VST3 processing time. +- Persistent bounded rotating log in user app data `AR-MIX-Studio/diagnostics/audio-diagnostics.log`, using a dedicated logger worker (never audio callback). +- Device XML saved upon device change, **not** on a repeating 3-second UI timer. +- Uses current `fix/fader-thumb-symmetry-polish` GUI (ArSonMix, metal controls, horizontal PAN sliders). Audio host code stays isolated. +- Press SIGNAL CHECK → OPEN DIAGNOSTIC LOG to inspect or share diagnostic evidence after reproducing audio stutter. +- Read [P2.2 reliability guide](docs/P2_REALTIME_RELIABILITY.md). + +## P2.3 — Real Live VU + PAN + Instant FX Bypass + +- In the native JUCE host, v0.3 sine-wave demonstration meter generator is completely disabled. Only real Channel 1 input and real master output move; other preview channels have no fake audio activity. +- Channel 1 horizontal PAN is connected to the actual stereo output matrix after VST3, with a transparent centre and correlated-stereo-safe extremes. +- Each VST3 insert in the MIX view has a small ⏻ toggle with clear ON/OFF state. Bypass updates the atomic realtime control without rebuilding the plugin graph or leaving the MIX screen. +- Diagnostic health JSON no longer truncates every record at 511 characters; the bounded queue slot is now 4096 bytes, with a truncation counter. +- Windows CI validates the native UI contract and real DSP pan coefficient tests. Hardware verification remains necessary. + +## P2.5.1 — Live preset prepared graph + +- Pre-stage plugin binary state before live recall, publish graph at audio callback boundary, retire old graph only after callback acknowledges; de-click buffer fades. +- Does not require MUTE OUTPUT for recall; SAVE still muted-only. Old ADD/REMOVE/REORDER remains callback-detach and should not be used during performance. +- See [P2.5 live recall notes](docs/P25_LIVE_GRAPH_HANDOFF.md). This is not a full seamless dual-DSP crossfade.