diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4355372..5379c1a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,10 +38,12 @@ jobs: run: | $ErrorActionPreference = 'Stop' $dest = 'artifacts/ArSonComp-Windows-Test' - New-Item -ItemType Directory -Force "$dest/Plugin", "$dest/Standalone", "$dest/Screenshots" | Out-Null + New-Item -ItemType Directory -Force "$dest/Plugin", "$dest/Standalone", "$dest/Screenshots", "$dest/QA" | Out-Null Copy-Item -Recurse 'build/ArSonComp_artefacts/Release/VST3/ArSonComp.vst3' "$dest/Plugin/" Copy-Item 'build/ArSonComp_artefacts/Release/Standalone/ArSonComp.exe' "$dest/Standalone/" Copy-Item 'docs/WINDOWS-QUICKSTART.md' "$dest/START-HERE.md" + Copy-Item 'tools/Collect-ArSonComp-Hardware.ps1' "$dest/QA/" + Copy-Item 'docs/M7-PHYSICAL-READINESS.md' "$dest/QA/" Copy-Item 'artifacts/benchmark.txt' "$dest/benchmark.txt" Copy-Item 'artifacts/realtime-stress.txt' "$dest/realtime-stress.txt" Copy-Item 'build/ArSonComp-preview*.png' "$dest/Screenshots/" diff --git a/AGENTS.md b/AGENTS.md index 4899372..3ab92de 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,3 +25,8 @@ - Catalog browser supports real categories/search/tags/description/favorites without consuming additional permanent GUI space. - Loading a factory program never changes External SC, Listen or Bypass; factory values are sanitized against the canonical parameter table. - UI favorites persistence is strictly on the message thread, never in DSP. Test every program for finite output, safe bounds and host parameter recall, plus browser screenshot. + +## M7 physical readiness +- Keep the user-approved separate transparent horizontal silver ruler and round thumb; avoid fake light waves or diagonal specular backgrounds. Cache matte brushed grain only on resize. +- Retain visual/native slider hit separation, caption clearances, host automation and LCD meter isolation. +- A shipped Windows test artifact needs the actual screenshot set, QA inventory helper and an explicit physical-test checklist; no CI result proves PS22 xruns or commercial sonic parity. diff --git a/docs/M7-PHYSICAL-READINESS.md b/docs/M7-PHYSICAL-READINESS.md new file mode 100644 index 0000000..eef2ae2 --- /dev/null +++ b/docs/M7-PHYSICAL-READINESS.md @@ -0,0 +1,35 @@ +# M7 — Premium flat brushed metal + hardware field-test gate + +## Integrated changes +- Full editor 612×580, minimum 580×540, MINI remains unchanged. +- Approved photographic horizontal ruler track and circular silver thumb retained. +- Thumb visually reduced from 30px to 23.8px at its normal 34px control height + (about **21% smaller**), while keeping the same draggable JUCE Slider bounds. +- Caption and slider component both lowered by 3px with their 5px separation. +- Old diagonal/spotlight chassis replaced by matte #4B4E50 graphite and + reproducible horizontal micro-scratches, cached on resize only. +- Fast message-thread paint, bounded meter updates, zero DSP changes. + +## Industry reference, not copying +- FabFilter Pro-C 3: large metering with compact controls. + https://www.fabfilter.com/help/pro-c/using/displays +- TDR Kotelnikov GE: logical sections, readable metering. + https://docs.tokyodawn.ru/kotelnikov-ge-manual/ +- Steinberg VST3 API: isolate realtime audio from GUI allocations and I/O. + https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical%2BDocumentation/API%2BDocumentation/Index.html + +## Evidence and physical acceptance +Windows VST3+Standalone + plugin CTest + four real JUCE snapshots; Linux +sanitizer engine-safety. Source smoke tests include horizontally directional +flat chassis, 20–25px photo thumb, caption clearance, MINI and sidechain. + +Package QA/Collect-ArSonComp-Hardware.ps1 with an up-to-date START-HERE.md. +A successful CI **does not** prove Maono PS22 stability. The actual gate is +two VST3 hosts, ASIO/WASAPI driver and 128/64/32 buffers, A/B/C/D crackle +isolation, host XRUN counts, project restore, 60-minute session, and +loudness-matched listening. Test helper only collects metadata and writes a +manual form; it does not silently claim measurements. + +## CI budget +One integrated PR and one Windows+Linux CI. Retry only a failed job after +targeted fixes. No lookahead, oversampling or DSP architecture changes. diff --git a/docs/WINDOWS-QUICKSTART.md b/docs/WINDOWS-QUICKSTART.md index 179c3f1..b2dbf93 100644 --- a/docs/WINDOWS-QUICKSTART.md +++ b/docs/WINDOWS-QUICKSTART.md @@ -1,88 +1,82 @@ -# ArSonComp Windows x64 — start here - -**Test build / PR #1 — not a production release.** This artifact is generated from the exact commit recorded in `BUILD-INFO.txt` and is validated by Linux engine tests + Windows build, state/editor smoke and benchmark CI. It has **zero added DSP sample latency**; host buffer, audio interface and driver latency still exist. - -## A. Fastest test: standalone - -Run `Standalone/ArSonComp.exe`. Select the input/output device in the standalone Audio Settings. For monitoring your microphone, enable your input channels and use a low, stable buffer size appropriate to your device. This build does **not** claim ASIO support; host audio-device options vary. - -## B. VST3 test in ArSonMiX or another DAW - -1. Copy the **entire** folder `Plugin/ArSonComp.vst3` to `C:\Program Files\Common Files\VST3\` (administrator permission may be needed). -2. Restart or rescan VST3 in a compatible host. -3. Insert ArSonComp on a track or bus. Start with ratio 2:1–4:1 and lower Threshold until you see approximately 3–6 dB gain reduction. -4. Compare Clean, Feedback and Smooth at matched output loudness. Try MINI/FULL, drag the white threshold marker, and use SAVE/OPEN for your own `.arsoncomp` preset. -5. Verify external sidechain routing only if your host exposes and connects the sidechain bus. Switch Listen SC off before normal use. - -## C. Quick test checklist - -- Vocal: listen for pumping, sibilance, level consistency and dry/wet behavior. -- Bass: use low frequencies and aggressive attack to check distortion and filter interactions. -- Transients: check drums with attack/hold/release; zero lookahead is not a true-peak limiter. -- UI: switch MINI/FULL; resize to 660x490 and 704x520, then try a larger window. Confirm bottom LCD value readout, labels, metering, and HP/LP controls. -- Project: save, close, reload; confirm host parameters, style, bypass and input/output routing. -- For performance, use multiple instances in your host and compare CPU with plugin editors hidden/visible. - -## Included evidence - -`Screenshots/` has Windows editor smoke captures. `benchmark.txt` is a machine-dependent 48-kHz/64-frame microbenchmark and **not** a DAW dropout guarantee. `SHA256SUMS.txt` contains hashes of the executable plugin payloads. - -FabFilter Pro-C is an independent benchmark for workflow/quality only. No FabFilter code, UI asset or proprietary algorithm is included. - -### New full-graph GUI acceptance - -Check upper central transfer graph, red fading curve and live gain reduction line, left input stereo LED meters, right GR and output stereo LEDs, and enlarged Threshold knob. Check the default/minimum/MINI screenshots from this commit, not a previous ZIP. No lookahead is present in the zero-added-sample live signal path. - -### Compact responsive GUI and bottom-of-LCD value display - -The editor now defaults to **704×520**, with **660×490** minimum full size and **330px** high MINI. FULL restores the preceding expanded dimensions. The primary rotary row is shorter, Sidechain positions adapt to the editor width, and the actual meter/graph canvas retains useful space. - -Hover or drag **any** rotary knob or horizontal slider to show its name, exact value and unit in the **bottom centre of the black LCD**. The last focused value remains visible rather than flashing away. MINI uses the right-hand footer for the readout. There are **no overlay value bubbles or TooltipWindow**, so nothing obscures the controls. Double-click a knob or slider to restore its factory value. The JUCE APVTS host-automation attachments and audio DSP remain unchanged. - -### Two-sided dissolve, low-cost LED metering - -Use the Standalone EXE or VST3 from the **latest** matching Windows Actions artifact. With audio playing, confirm the red gain-reduction trace and gray input/output traces disappear gradually at **both ends** of the dynamics graph without abrupt vertical cutoffs, while remaining crisp in the middle. The curve marker and compressor settings must still work as before. Confirm meters decay smoothly and their unlit segments are visible at all levels. Graph rendering is GUI-only, with no lookahead or additional algorithmic audio samples. Measure CPU and crackles in your own host/driver at 32/64/128 sample buffers rather than treating CI synthetic numbers as real-device measurements. - -### Metal controls and decluttered header - -All primary knobs now mimic machined/brushed aluminium with a black recessed channel and a coral (not green) value sector. Hover any knob or slider to see its current value in the LCD footer; double-click to restore the default. Click **FILE** in the header to open Save/Open options for your .arsoncomp user presets; the previous separate SAVE/OPEN buttons are now intentionally removed. Switch the footer between **DYNAMICS** and **SIDECHAIN** for advanced detector filters and monitoring. Switching pages does not change or reset audio parameters. Compare all four screenshots (default, minimum, MINI, SIDECHAIN), then validate physically in Standalone or your VST3 host. - -### Live-host readiness checks (new) - -Run the supplied Standalone on your audio interface and load the complete VST3 in a DAW or ArSonMiX. Start with 48 kHz and a 128-sample host buffer; repeat at 64 then 32 samples where stable. Route a mono kick/mic into the VST3 external Sidechain bus on a stereo track: when **EXT SC** is selected, a strong detector signal must attenuate the main stereo channels while preserving their balance; switching it off must restore internal detection. Try host Bypass at +12 dB Input and Makeup, preset save/reopen, MINI/full, then stop transport and confirm the last dynamics trace clears rather than freezing. Real driver round-trip latency is separate from the plugin's zero additional algorithmic samples. - -### Hardware knob and gunmetal slider controls - -All rotary knobs retain their coral sector behind the black brushed-metal face and a small coral pointer dot near the rim. The numerical text boxes are removed. Horizontal Range/Hold/Mix/Link/HP/LP faders render a **stationary gunmetal rail**, coral-red recessed level and a **moving gunmetal thumb in front**. They use the same JUCE parameter controls as before, without changing audio behavior. AUTO/EXT SC/LISTEN and ACTIVE/BYPASS use compact left-caption toggles. - -### Premium brushed-metal and glass UI - -The updated full editor should now have a horizontally brushed grey metal background and a recessed jet-black LCD for the dynamics history/transfer graph and segmented IN/GR/OUT meters. The knob area is shorter, leaving more room for the screen. Range/Hold/Mix/Link/HP/LP rails have a deep shadowed well sized to the original metallic thumb; all toggle captions appear on the left of their switches, including ACTIVE/BYPASS in the header. Both DYNAMICS and SIDECHAIN pages, MINI, old presets/automation and all audio routes continue working. No plugin audio processing or added algorithmic sample delay has changed. - -### M4 compact, readable chassis - -The editor now defaults to **704×520**, with **660×490** as the minimum FULL layout and an unchanged 330px-high MINI view. Compared with the old 780×640 default, the window consumes approximately 27% less screen area without indiscriminately shrinking knobs. All header separators and unnecessary overline captions are removed; the only header captions are MODEL and PRESET. Brushed panel label contrast is checked by automated WCAG-style tests (>=4.5:1 against dark metal reference). The preset remains width-bounded. The footer technical slogan has been removed to prioritize the live value readout. Test at both minimum/default size and with the SIDECHAIN tab selected. - -## Windows interface crackle diagnostic — native ASIO (PS22 and similar) - -The standard JUCE `juce_audio_devices` build defaults `JUCE_ASIO=0`. ArSonComp Windows builds now enable `ARSON_WINDOWS_ASIO=ON` (and `JUCE_ASIO=1`) so **Standalone Options → Audio Settings** can list the system's native ASIO devices. This only enables the backend; install your interface manufacturer's official driver separately. **VST3 uses the audio driver selected by its DAW/host**, not the plug-in. - -For MAONO PS22, install the official [PS22 Windows driver and routing tool](https://faq.maono.com/docs/PS22-FAQs); in the application choose **ASIO** and the device named **Maono ASIO** (name may vary by driver version). Set input and output to PS22, start with **48 kHz, 512 samples**, then test 256 / 128 / 64 only if stable. Close other apps using the ASIO interface, use a direct motherboard USB connection, and disable PS22 direct monitoring if monitoring its software-processed audio to avoid doubled sound. MAONO specifically documents the Maono ASIO driver for its interfaces at https://faq.maono.com/docs/TrueRTA-REW-Software-Configuration-Guide . - -**Isolate the fault before claiming a fix:** (A) PS22 direct monitor (analog baseline, no ArSonComp), (B) unprocessed Windows/DAW input/output, (C) VST3 or Standalone with compressor host-bypassed, (D) compressor active with identical gain and routing. If A has crackles suspect input/cable/hardware; if B/C also crackle suspect driver, buffer, USB or operating-system scheduling; if only D crackles investigate DSP/automation and capture a digital audio recording. A single Task Manager CPU/GPU/memory snapshot is not an xrun measurement. Report driver name, sample rate, buffer, whether Standalone or VST3, and whether bypass removes crackles. A real audio-device test is required. - -`ARSON_WINDOWS_ASIO=OFF` can be used by downstream builders who cannot accept the Steinberg ASIO SDK's third-party licensing terms; review distribution compliance before a public release. Enabling ASIO does **not** ensure zero hardware latency or prevent all crackles. - -### M5 original factory presets and browser - -The preset dropdown includes **46 original ArSonComp factory starting points** in ten categories: Clean, Vocals, Drums, Bass, Guitar, Piano, Mixbus, Mastering, Special, and Live & Broadcast. Choose **SEARCH / BROWSE PRESETS...** at the top or FILE → Browse factory bank to open the compact in-plugin browser without resizing the editor. - -Search matches name, category, tags and description. Pick a row to see its purpose and author. APPLY auditions without closing; double-click applies and closes; keyboard arrows and Enter apply, Escape closes. STAR/UNSTAR stores stable favorite IDs in the user application data directory, and FAVORITES filters the list. Use the bank's preset list directly for faster navigation. - -Presets are designed for ArSonComp's independent three compressor models, **not** imported FabFilter .ffp programs or claims of matching proprietary factory sounds. Each preset preserves the current External SC, Listen and Bypass switches, so recall never silently changes live routing. Threshold and amount of reduction always depend on the input's actual level; tune to source and loudness-match listening comparisons. FILE Save/Open continues to support the existing .arsoncomp user preset format. - -## Smaller factory-browser GUI (2026-10-31) - -New default FULL window **612×500**, minimum **580×480**; MINI height **320**, retaining the live meter well. Header is a single compact responsive row (100px brand, smaller model/actions, usable preset field). Main rotary controls retain a 62px drag target, and SIDECHAIN HP/LP/detector/EXT/LISTEN widths are calculated from available space to avoid clipping at minimum width. The categorized 46-preset browser remains a transient overlay, not a permanent wide side panel. - -Factory programs now include purpose-specific Makeup starting gain, generally stronger for vocals/live and gentler for mastering. The goal is a noticeable first impression **without silently bypassing dynamics**, not guaranteed louder-is-better or universal headroom safety. Watch the output meter, adjust Input/Makeup and compare Bypass at matched loudness. +# ArSonComp M7 — Windows x64 physical test quickstart + +This is an engineering **test build**, not a public production release. +The exact commit is in `BUILD-INFO.txt`; `SHA256SUMS.txt` lists binary hashes. +The compressor adds zero **algorithmic sample** latency, not zero hardware +round-trip/host/driver latency. Do not assume Maono PS22 stability from CI. + +## Install + +Standalone: launch `Standalone/ArSonComp.exe`. In Audio Settings choose +the real interface and its **native ASIO driver** if available. If no ASIO +driver appears, verify the vendor installer/driver first; WASAPI can be used +for comparison. Start with a headphone-safe volume. + +VST3: copy the **entire** `Plugin/ArSonComp.vst3` bundle to +`C:\Program Files\Common Files\VST3\`, then rescan plugins. +Test in ArSonMiX and one independent DAW that supports VST3. + +## GUI and operation + +Full size is **612×580**, minimum **580×540**, MINI height **320**. +Confirm the tall black-glass dynamics display, transfer curve, IN/GR/OUT +meters, seven rotary knobs, search/preset browser, FILE/Save/Open, A/B and +Bypass. The bottom tabs switch **Dynamics / Sidechain** without changing audio. + +The six horizontal controls (Range, Hold, Mix, Link, HP, LP) retain the +user-approved flat silver brushed-metal track and round silver thumb. +M7 makes the visible thumb smaller without reducing its mouse drag area; +caption and fader are slightly lower. The body is matte brushed graphite, +with **flat horizontal grain** rather than wave-like sheen. + +Hover/drag any control to see its exact value in the LCD bottom readout. +Double-click any slider/knob to restore the specified factory default. +Test MINI/FULL, minimum/default width, Sidechain and preset browser for +readability and control collision. + +## Safe physical listening procedure + +1. Start at **48 kHz, 128 samples**, one plugin instance. Keep LISTEN SC + disabled unless you are intentionally auditioning the detector. +2. Select Clean mode, approximately **2:1–4:1**, set Threshold for + **3–6 dB gain reduction** on a steady voice. Adjust Makeup conservatively + to avoid downstream clipping. Compare Active/Bypass at similar loudness. +3. Repeat with vocals, bass, snare/drum transients, speech and a stereo mix. + Compare Clean / Feedback / Smooth at matched loudness, checking attack, + recovery, pumping, sibilance, stereo coherence and unwanted distortion. +4. Only after stable 128-sample operation, test **64 then 32** sample buffers. + Log audio glitches and the **actual host xrun count/callback spikes**, + not only Task Manager CPU. Repeat with 1 then 8 active instances. + +## Isolate crackles: same sample rate, driver, gain and routing + +A: Audio interface direct monitoring, no application processing. +B: Host routing with no ArSonComp inserted. +C: Plugin inserted and **host-bypassed** (immediate bit-transparent bypass). +D: Plugin active with fixed parameters. + +If A/B/C crackles, investigate driver, host routing, DPC, USB and interface +before blaming compressor DSP. If only D crackles, record the digital input +and processed output, current parameters, buffer, host xrun log and automation. +The plugin's own Active/Bypass control is smoothed, unlike immediate host bypass. + +## Reliability and report + +Save/reopen a real DAW project and verify state, factory/user preset, A/B, +all automation, MINI/FULL and external mono/stereo sidechain routing. +Disable SC LISTEN again after checking. Run a **60-minute live audio test**, +open/close the editor, observe private-memory growth, actual xrun counters +and any UI stalls. No physical result is declared until recorded. + +Optional: right-click `QA/Collect-ArSonComp-Hardware.ps1` and run with +PowerShell (or run directly from a PowerShell terminal). It writes a +**read-only device inventory and a manual checklist** into `QA/Reports/`. +It does NOT measure xruns, audio timing or hardware latency. + +The included `Screenshots/` are actual JUCE CI renders; +`benchmark.txt` and `realtime-stress.txt` are machine-dependent synthetic +engine timings, not real DAW latency or glitch measurements. + +ASIO SDK distribution licensing must be reviewed before any public +installer. The 46 factory presets, audio DSP, parameter IDs and latency are +unchanged by M7. diff --git a/plugin/FaderGeometry.h b/plugin/FaderGeometry.h index e35c4ea..411edaf 100644 --- a/plugin/FaderGeometry.h +++ b/plugin/FaderGeometry.h @@ -14,7 +14,8 @@ struct FaderGeometry { const float trackWidth=juce::jmax(1.0f, std::min(width-4.0f,(height-3.0f)*trackAspect)); const float trackHeight=trackWidth/trackAspect; - const float thumbSize=juce::jlimit(22.0f,33.0f,height-4.0f); + // Smaller VISUAL thumb while keeping the 34px interactive Slider bounds. + const float thumbSize=juce::jlimit(20.0f,25.0f,height*0.70f); const float railX=(width-trackWidth)*0.5f; const float cy=height*0.5f; FaderGeometry g; diff --git a/plugin/HeaderLayout.h b/plugin/HeaderLayout.h index 16d48f1..1580090 100644 --- a/plugin/HeaderLayout.h +++ b/plugin/HeaderLayout.h @@ -21,11 +21,11 @@ struct EditorMetrics { static constexpr float buttonFont=11.0f; static constexpr float controlCaptionFont=10.4f; static constexpr int knobCaptionOffset=2, knobTopOffset=26, knobHeight=66; - static constexpr int faderCaptionOffset=25, faderTopOffset=44, faderHeight=34; + static constexpr int faderCaptionOffset=28, faderTopOffset=47, faderHeight=34; static constexpr juce::uint32 captionRgb=0xffd9e0e3; static constexpr juce::uint32 controlCaptionRgb=0xffe4e9ec; static constexpr juce::uint32 headerBackgroundRgb=0xff292d30; - static constexpr juce::uint32 metalBackgroundRgb=0xff454a4d; + static constexpr juce::uint32 metalBackgroundRgb=0xff4b4e50; }; struct HeaderLayout { diff --git a/plugin/SurfacePaint.h b/plugin/SurfacePaint.h index e48035c..16d8568 100644 --- a/plugin/SurfacePaint.h +++ b/plugin/SurfacePaint.h @@ -7,28 +7,37 @@ namespace arson::ui { // Resizable brushed gunmetal chassis, painted ONCE into Editor::metalSurface // when the plugin dimensions change. No noise, blur, bitmap IO or shader in // timerCallback / audio callback. Deterministic scan lines avoid RNG state. -inline void paintBrushedChassis(juce::Graphics& g, int width, int height) { - const float w=static_cast(width),h=static_cast(height); - const juce::Colour light{0xff65696b}, dark{0xff383c40}; - g.setGradientFill(juce::ColourGradient(light,0.0f,0.0f, - dark,w,h,false)); - g.fillRect(0.0f,0.0f,w,h); - g.setGradientFill(juce::ColourGradient( - juce::Colours::white.withAlpha(0.09f),w*0.16f,0.0f, - juce::Colours::black.withAlpha(0.08f),w*0.88f,0.0f,false)); - g.fillRect(0.0f,0.0f,w,h); - // Fine horizontally brushed metal grain. Baked into a single image. - for(int y=0;y(y)*2654435761u+1013904223u; - const float a=0.026f+static_cast((k>>25)&15u)/1400.0f; - g.setColour((k&1u)?juce::Colours::white.withAlpha(a): - juce::Colours::black.withAlpha(a*1.45f)); - g.drawHorizontalLine(y,0.0f,w); +// Realistic flat brushed gunmetal. Grain is HORIZONTAL and deliberately +// flat: no radial/diagonal sheen, no waves and no separate photo overlay. +// This runs once at Editor::resized(), not in the meter timer or audio callback. +inline void paintBrushedChassis(juce::Graphics& g,int width,int height) { + g.fillAll(juce::Colour{0xff4b4e50}); + for(int y=0;y(y)+0x9e3779b9u; + k^=k>>16; k*=0x7feb352du; + k^=k>>15; k*=0x846ca68bu; k^=k>>16; + const float a=0.025f+static_cast((k>>25)&31u)*0.00065f; + g.setColour((k&1u) ? juce::Colours::white.withAlpha(a) : + juce::Colours::black.withAlpha(a*1.10f)); + g.drawHorizontalLine(y,0.0f,static_cast(width)); + // Short directionally brushed scratches without large-scale banding. + if(y%3==0) { + for(int cell=0;cell<(width+63)/64;++cell) { + const std::uint32_t t=k^(static_cast(cell+1)*2246822519u); + const int x=cell*64+static_cast((t>>22)&15u); + const int right=std::min(width,x+15+static_cast((t>>16)&31u)); + if(right<=x)continue; + g.setColour((t&1u) ? juce::Colours::white.withAlpha(0.028f) : + juce::Colours::black.withAlpha(0.035f)); + g.drawHorizontalLine(y,static_cast(x),static_cast(right)); + } + } } - g.setColour(juce::Colours::white.withAlpha(0.085f)); - g.drawHorizontalLine(1,0.0f,w); - g.setColour(juce::Colours::black.withAlpha(0.32f)); - g.drawHorizontalLine(height-2,0.0f,w); + g.setColour(juce::Colours::white.withAlpha(0.08f)); + g.drawHorizontalLine(0,0.0f,static_cast(width)); + g.setColour(juce::Colours::black.withAlpha(0.25f)); + g.drawHorizontalLine(height-1,0.0f,static_cast(width)); } inline void paintInsetGlass(juce::Graphics& g,juce::Rectangle bounds) { diff --git a/tests/PluginSmoke.cpp b/tests/PluginSmoke.cpp index 6510c96..938e5a4 100644 --- a/tests/PluginSmoke.cpp +++ b/tests/PluginSmoke.cpp @@ -209,6 +209,28 @@ static int runSmoke(int argc,char** argv) { if(std::abs(audio.getSample(0,0)-0.123f)>1.0e-6f || std::abs(audio.getSample(0,31)-0.123f)>1.0e-6f)return failHost(46); } + // M7: the real cached chassis must have a visible fine horizontal + // brush grain WITHOUT large-scale left-to-right spotlight gradients. + { + constexpr int w=192,h=96; + juce::Image surface(juce::Image::RGB,w,h,true); + { + juce::Graphics paint(surface); + arson::ui::paintBrushedChassis(paint,w,h); + } + float rows=0.0f,across=0.0f; + for(int y=8;y<88;++y) { + const float v=surface.getPixelAt(90,y).getBrightness(); + rows+=std::abs(v-surface.getPixelAt(90,y+1).getBrightness()); + across+=std::abs(v-surface.getPixelAt(16,y).getBrightness()); + } + const float tone=surface.getPixelAt(90,42).getBrightness(); + if(rows<0.8f || across>2.5f || tone<0.24f || tone>0.41f) { + std::cerr<<"BRUSHED_MATERIAL_89 grain="<findChildWithID("param."+juce::String(name)); if(!caption||!fader||fader->getY()-caption->getBottom()<4|| fader->getHeight()!=arson::ui::EditorMetrics::faderHeight|| - fader->getBottom()>editor->getHeight()-5)return 76; + fader->getBottom()>editor->getHeight()-5 || + caption->getY() != + editor->getHeight()-arson::ui::EditorMetrics::bottomControlsReserve+ + arson::ui::EditorMetrics::faderCaptionOffset)return 76; } // File controls are deliberately not mounted in the visible header. // Both independent tab views must have unclipped, non-overlapping @@ -692,7 +719,10 @@ static int runSmoke(int argc,char** argv) { const auto* caption=editor->findChildWithID("caption."+juce::String(name)); const auto* fader=editor->findChildWithID("param."+juce::String(name)); if(!caption||!fader||fader->getY()-caption->getBottom()<4|| - fader->getHeight()!=arson::ui::EditorMetrics::faderHeight)return 77; + fader->getHeight()!=arson::ui::EditorMetrics::faderHeight || + caption->getY() != + editor->getHeight()-arson::ui::EditorMetrics::bottomControlsReserve+ + arson::ui::EditorMetrics::faderCaptionOffset)return 77; } if(!hp->isVisible()||!lp->isVisible()||!detector->isVisible()|| !external->isVisible()||!listen->isVisible()|| diff --git a/tools/Collect-ArSonComp-Hardware.ps1 b/tools/Collect-ArSonComp-Hardware.ps1 new file mode 100644 index 0000000..e7afb63 --- /dev/null +++ b/tools/Collect-ArSonComp-Hardware.ps1 @@ -0,0 +1,61 @@ +# ArSonComp M7 read-only Windows audio hardware inventory and manual QA form. +# Does not modify devices, measure audio callback timing, or declare xrun success. +[CmdletBinding()] +param([string]$ReportDirectory = (Join-Path $PSScriptRoot "Reports")) +$ErrorActionPreference = "Stop" +New-Item -ItemType Directory -Force -Path $ReportDirectory | Out-Null +$stamp = (Get-Date).ToUniversalTime().ToString("yyyyMMdd-HHmmss") +$prefix = Join-Path $ReportDirectory ("ArSonComp-" + $stamp) +$osInfo = $null +$audioInfo = @() +try { + $osInfo = Get-CimInstance Win32_OperatingSystem | + Select-Object Caption, Version, BuildNumber, OSArchitecture +} catch { Write-Warning ("OS query: " + $_.Exception.Message) } +try { + $audioInfo = @(Get-CimInstance Win32_SoundDevice | + Select-Object Name, Manufacturer, DriverVersion, Status) +} catch { Write-Warning ("Audio devices: " + $_.Exception.Message) } +$inventory = [ordered]@{ + generated_utc = (Get-Date).ToUniversalTime().ToString("o") + purpose = "Device metadata only. Not a latency or xrun measurement." + windows = $osInfo + audio_devices = $audioInfo +} +$inventory | ConvertTo-Json -Depth 6 | + Set-Content -Path ($prefix + "-devices.json") -Encoding UTF8 +$report = @" +# ArSonComp M7 physical test — manual record +Date: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss zzz') +Build SHA (BUILD-INFO.txt): +Host and version / Standalone or VST3: +Windows / CPU: +Audio interface (Maono PS22 if used): +Driver and version (ASIO/WASAPI): +Sample rate (start 48000 Hz): +Audio input/output channels: +Buffer tested (128 / 64 / 32 samples): +Mode / preset / threshold / makeup / ratio: +Host plugin reported latency: +Actual hardware round-trip latency, if measured: +Actual host xrun count and callback spikes: +A Device direct monitoring crackles?: +B Host without plugin crackles?: +C Host-bypassed plugin crackles?: +D Plugin active crackles?: +Audio recordings for A/B/C/D: +1-instance xrun count: +8-instance xrun count: +60-minute session xrun count: +Editor open/close while playing: +Private bytes before/after: +Host project saved/restored and automation tested?: +Mono / stereo / external sidechain tested?: +GUI minimum/default/MINI and control visibility: +Result: PASS / FAIL / NOT TESTED +Reproduction notes: +"@ +$report | Set-Content -Path ($prefix + "-manual-checklist.md") -Encoding UTF8 +Write-Host "Saved device inventory:" ($prefix + "-devices.json") +Write-Host "Manual QA form:" ($prefix + "-manual-checklist.md") +Write-Host "No xrun or hardware latency measurement was performed automatically."