Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/dsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
paths:
- "Source/DSP/**"
- "WebUI/**"
- "ConsoleUI/**"
- "tests/**"
- "CMakeLists.txt"
- ".github/workflows/dsp.yml"
Expand All @@ -29,6 +30,24 @@ jobs:
run: |
node --check WebUI/app.js
node WebUI/smoke.test.cjs
- name: Console EQ syntax and native ACK/readback contract
run: |
node --check ConsoleUI/app.js
node --check ConsoleUI/smoke.test.cjs
node ConsoleUI/smoke.test.cjs
- name: Capture console EQ design preview 900x540 and 720x460
shell: bash
run: |
CHROME=$(command -v google-chrome || command -v chromium || true)
if [[ -z "$CHROME" ]]; then
echo "Chromium unavailable; no visual artifact"
exit 0
fi
mkdir -p visual-qa
"$CHROME" --headless --no-sandbox --disable-gpu --hide-scrollbars --virtual-time-budget=1500 --window-size=900,540 --screenshot="$PWD/visual-qa/ArSonMix-ConsoleEQ-900x540.png" "file://$PWD/ConsoleUI/index.html?designPreview=1"
"$CHROME" --headless --no-sandbox --disable-gpu --hide-scrollbars --virtual-time-budget=1500 --window-size=720,460 --screenshot="$PWD/visual-qa/ArSonMix-ConsoleEQ-720x460.png" "file://$PWD/ConsoleUI/index.html?designPreview=1"
test -s visual-qa/ArSonMix-ConsoleEQ-900x540.png
test -s visual-qa/ArSonMix-ConsoleEQ-720x460.png
- name: Capture 900x535 editor visual QA (no JUCE build)
shell: bash
run: |
Expand All @@ -48,3 +67,11 @@ jobs:
path: visual-qa/ArSonEQ-M3-1-900x535.png
if-no-files-found: warn
retention-days: 7

- name: Upload isolated Console EQ visuals
uses: actions/upload-artifact@v4
with:
name: ArSonMix-Console-EQ-Design-Candidate
path: visual-qa/ArSonMix-ConsoleEQ-*.png
if-no-files-found: warn
retention-days: 7
4 changes: 2 additions & 2 deletions .github/workflows/vst3-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
shell: pwsh
run: cmake -S . -B build-vst -DARSONEQ_BUILD_PLUGIN=ON -DARSONEQ_BUILD_TESTS=ON "-DJUCE_WEBVIEW2_PACKAGE_LOCATION=$env:RUNNER_TEMP/arsoneq-nuget"
- name: Build BOTH Windows Release formats + native tests
run: cmake --build build-vst --config Release --target ArSonEQ_VST3 ArSonEQ_Standalone arson_eq_core_tests arson_eq_rt_tests arson_eq_analyzer_tests --parallel 2
- name: Run 3 native DSP suites
run: cmake --build build-vst --config Release --target ArSonEQ_VST3 ArSonEQ_Standalone arson_eq_core_tests arson_eq_rt_tests arson_eq_console_tests arson_eq_analyzer_tests --parallel 2
- name: Run 4 native DSP suites
run: ctest --test-dir build-vst -C Release --output-on-failure
- name: Package verified VST3 and Standalone EXE together
shell: pwsh
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ if(ARSONEQ_BUILD_TESTS)
add_executable(arson_eq_rt_tests tests/eq_rt_tests.cpp)
target_link_libraries(arson_eq_rt_tests PRIVATE arson_eq_dsp)
add_test(NAME arson_eq_rt COMMAND arson_eq_rt_tests)
add_executable(arson_eq_console_tests tests/eq_console_tests.cpp)
target_link_libraries(arson_eq_console_tests PRIVATE arson_eq_dsp)
add_test(NAME arson_eq_console COMMAND arson_eq_console_tests)
find_package(Threads REQUIRED)
add_executable(arson_eq_analyzer_tests tests/eq_analyzer_tests.cpp)
target_link_libraries(arson_eq_analyzer_tests PRIVATE arson_eq_dsp Threads::Threads)
Expand Down
332 changes: 332 additions & 0 deletions ConsoleUI/app.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions ConsoleUI/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en"><head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="color-scheme" content="dark"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'none'; font-src 'self'; object-src 'none'; base-uri 'none'">
<title>ArSonMix · Channel EQ (isolated candidate)</title>
<link rel="stylesheet" href="style.css"></head>
<body><div class="eq-shell">
<header class="window-title"><span class="brand">ArSonMix</span><span class="window-divider"></span><span class="window-name">CHANNEL EQ</span><span class="window-right" id="connectionLabel">NOT CONNECTED</span></header>
<div class="eq-toolbar">
<div class="channel-identity"><span class="channel-led" aria-hidden="true"></span><span class="channel-name" id="channelTitle">CH 01 · VOCAL</span><span class="channel-kind">BUILT-IN / NATIVE</span></div>
<div class="toolbar-controls"><span class="processing-tag">MIN PHASE</span><span class="toolbar-rule"></span><span class="latency-tag">+0 SAMPLES</span><button id="flatBtn" class="metal-button" title="Disable all EQ bands" type="button">FLAT</button></div>
</div>
<main class="eq-main">
<section class="plot-area" aria-label="Parametric EQ response graph">
<div class="plot-glass"><canvas id="eqPlot" aria-label="Frequency response and draggable filter nodes"></canvas>
<div class="plot-caption"><span class="plot-dot"></span><span>CHANNEL PARAMETRIC EQ</span><span class="plot-caption-right" id="plotReadout">Drag a point to adjust · wheel changes Q</span></div>
<div class="plot-footnote" id="plotMode">NATIVE RESPONSE REQUIRED</div>
</div>
</section>
<nav class="filter-rail" aria-label="Select or enable EQ bands" id="filterRail"></nav>
<section class="edit-deck" aria-label="Selected filter settings">
<div class="edit-identity"><span id="selectedMark" class="selected-mark"></span><div><div class="edit-label">SELECTED FILTER</div><div id="selectedTitle" class="selected-title">HIGH PASS <span>HPF</span></div></div></div>
<div class="edit-controls"><label class="control-box"><span>FREQUENCY</span><div class="number-shell"><input id="frequencyInput" type="number" inputmode="decimal" min="20" max="20000" step="1" aria-label="Filter frequency"><small>Hz</small></div></label>
<label class="control-box"><span>GAIN</span><div class="number-shell"><input id="gainInput" type="number" inputmode="decimal" min="-18" max="18" step="0.1" aria-label="Gain in decibels"><small>dB</small></div></label>
<label class="control-box"><span>Q / WIDTH</span><div class="number-shell"><input id="qInput" type="number" inputmode="decimal" min="0.1" max="24" step="0.01" aria-label="Filter Q"></div></label>
<label class="control-box slope-control"><span>SLOPE</span><div class="select-shell"><select id="slopeInput" aria-label="Filter slope"><option value="12">12 dB</option><option value="24">24 dB</option><option value="48">48 dB</option></select></div></label></div>
<button id="bandToggle" class="power-button" type="button" aria-pressed="false" aria-label="Enable selected filter" title="Enable selected band; preserves settings"><span class="power-icon">⏻</span><span id="powerText">OFF</span></button>
</section>
</main>
<footer class="status-bar"><span class="status-dot" id="statusDot"></span><span class="status-main" id="statusText" role="status" aria-live="polite">Not connected · controls disabled</span><span class="status-spacer"></span><span>HPF · 5 PEQ · LPF</span><span class="status-sep"></span><span id="sampleRate">48 kHz</span><span class="status-sep"></span><span class="foot-brand">ArSonMix / EQ</span></footer>
</div><script src="app.js"></script></body></html>
12 changes: 12 additions & 0 deletions ConsoleUI/smoke.test.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Offline browser smoke. No npm, network, WebAudio or new host.
const {spawnSync}=require('node:child_process');
const {resolve}=require('node:path');
const fs=require('node:fs');
const browser=process.env.CHROME || ['/usr/bin/chromium','/usr/bin/google-chrome','/usr/bin/chromium-browser'].find(fs.existsSync);
if(!browser){console.log('Chromium absent: native-only smoke; screenshot gate skipped');process.exit(0)}
const page='file://'+resolve(__dirname,'index.html')+'?smoke=1';
const r=spawnSync(browser,['--headless','--no-sandbox','--disable-gpu','--disable-dev-shm-usage','--virtual-time-budget=1500','--dump-dom',page],{encoding:'utf8',timeout:30000,maxBuffer:4*1024*1024});
if(r.status!==0||!r.stdout.includes('data-smoke="PASS"')){
console.error('ConsoleUI contract smoke failed',r.stdout.match(/data-smoke="[^"]+"/)?.[0],r.stderr.slice(-900));process.exit(1);
}
console.log('ConsoleUI native ACK+readback / stale-epoch / offline fail-closed browser smoke PASS');
27 changes: 27 additions & 0 deletions ConsoleUI/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading