Repository navigation
Add the shared-memory plugin process model and Flutter editor - #7
Merged
Merged
Conversation
…reading for UI waveforms
… communication in VST3 bridge
…hment state synchronization
…y loading for VST3 plugins
Merged into a feature branch for review; not merged to main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add the CI workflow with the root CI job from ci/root-gate. flutter_vst3 now depends on the Flutter SDK, so it resolves and analyzes with flutter. - Port the rotary knob from flutter_ui as a reusable, tested widget with drag start and end callbacks for automation gestures. Nothing else was worth keeping. flutter_ui2 is already an ancestor of this branch. rebrand was squashed to main as c5218bf and only differs in stale README text. The rest of flutter_ui is an older dart_vst3_bridge prototype that the embedded view on this branch replaces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Actionable findings against main, with the fix and proof each one needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the IPC with per-instance hosts where block ownership passes by semaphore, and rewrite the processor template around them. Fix sample rate, state, oversized blocks, dead workers, reset and retired memory. Editor: one Flutter editor at a time, native sliders for the others and when Flutter fails to start, gestures, per-module window classes, and the memory address routed per instance over IConnectionPoint. Fix Echo and Reverb DSP, the Dart UI and binding, generated plugin UIDs, the Makefile and scripts that hid test failures, and dart_vst_host, which destroyed its PlugProvider after load and left plugins terminated. Add native IPC, plugin, editor and validator tests, and run them in CI on pushes to feature branches as well as on pull requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SDK only lays out Windows bundles under a Visual Studio generator. With Ninja the plugin links outside the bundle holding its worker, so fail the configure instead. Compile the SDK's macOS module loader with ARC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows engine never received the path to app.so, so a release editor could not start and fell back to native sliders every time. On macOS a corrupt app library crashed the host inside the engine, so try loading it first and use the native sliders when that fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed pixel check stopped the Windows run before the two-editor cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Close a dead worker's process handle on Windows. 20 crash cycles leaked 20 handles. - A late chunk now silences the whole block, so output never holds audio while the silence flags say it doesn't. - Report an infinite tail, so hosts don't cut off the echo and reverb. - Validate saved state in one place. The processor accepted NaN and out-of-range values, and the controller read a short state as zeros. - The B1 test now requires recovery. It used to pass with recovery removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests: - Exact wet impulse, decay and allpass assertions for Reverb, repeat amplitudes for Echo, and the full binding contract. 12 of 14 mutants used to survive; a sweep of 32 now kills them all. Fixes: - Validate incoming parameter messages, and apply initial values all or none. - Running without a host stays safe, including knob edits. - Echo's feedback docs now state the stable 0.85 cap. - Build the Flutter app on Windows only for plugins that declare one. - `build.bat test` runs the Windows IPC tests, not the POSIX script. - Editing Dart, metadata or templates now rebuilds the worker. Incremental builds used to ship a stale one, and accepted invalid Dart. - The generator escapes names, makes legal identifiers, and rejects collisions. - Correct the test and run commands in the README and CLAUDE.md. CI adds a Windows job for the public build commands, and a job for incremental builds and generator output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hashes of generated files changed with the templates' line endings, so the test failed on CI with no bug behind it. Name the identifiers, UIDs and strings that must stay stable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The editor test used to pass with parameter sync removed. It now drives the real UI, on the Flutter editor and on the native fallback: - Host to UI: pixels change with the value and return with it, after reopening and after restoring state. - UI to host: a real pointer drag gives one begin, moving performs, one end. Fixes: - Closing an editor mid-drag left the host's gesture open and the parameter stuck ignoring updates. The controller now ends open gestures on removal. - attached() rejects platform types it doesn't support. - The view gets the clamped value. A host value over 1 showed wrongly in native sliders, and was rejected by the Flutter editor. macOS has no capture or input permission on CI, so these print NOT RUN there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows, hiding the Flutter window mid-drag lost the button release. Flutter's gesture stayed open, so its next drag sent performs with no begin. The new pointer test caught this in CI. - The controller drops a perform with no open gesture, and a UI edit no longer moves the controller's value in that case. - The Windows view releases the pointer before hiding. - The display test waits for the repaint. Comparing after a fixed wait raced Flutter's frame on a slow runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dragging a knob, closing the editor, releasing, and reopening left the Flutter embedder waiting for a release that went elsewhere, so it ignored the next press and the knob was dead. Both Linux and Windows now end the pointer before hiding. The pointer test now covers both release orders. Releasing while closed must be exact. Holding the button through a reopen can register as a click, so that order checks the host's contract: no perform outside a gesture and nothing left open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Holding the button through an editor close and reopen left a begin with no end on Windows, which the contract check caught. An open gesture makes the host's next begin a duplicate. The binding now holds a begin until the first value, so a gesture with no edit never reaches the host. A tap on a knob no longer makes an empty undo step either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Holding the button through a close and reopen let Flutter see only the end of a click, and its next drag never finished, which left the host's gesture open. The window now stays disabled until that button is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set a status for every finding, separating what a test proves from what was only checked by reading the code. Add what the fixes found and the second adversarial review, what ran on which OS, how the tests were shown to fail, what this doesn't prove, and the deleted branches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every finding marked "no dedicated test" now has a test seen to fail when its fix is undone: - Behaviour: exclusive IPC resources and modes, no console window, _exit after a failed exec, the DLL search path and GDK_BACKEND left alone, two modules with one unloaded, editor liveness, release builds refusing Debug assets, RUNPATH, graph library loading, make targets, and host load and render. - Absences: repo_rules_test.py fails if removed code, binaries, stale claims or absolute paths come back. Analyzer rules cover print and empty catches. - README test commands now run in CI. CI gains a mutation job that proves the editor tests catch the Windows pointer fixes being undone, which needs a Windows Flutter build. The RUNPATH test found a real bug: the plugin carried an absolute path from the build machine. It now holds only $ORIGIN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Remove the Windows releasePointer. A mutant removing it survived, so no test needs it, and ignoreHeldButton does the work. - macOS checks what it can in the two-module case, and prints NOT RUN for pixels and pointer. The synthetic mouse code never worked, so it's gone. - The mutation script runs every mutant and reports all survivors together. - The README test strips CI's environment, which changes the runners' output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…macOS A mutant removing ignoreHeldButton survived as well, so neither Windows pointer workaround is needed: the controller's guard and the deferred begin hold the contract in every drag order. The synthetic release was probably what caused the stray begin it seemed to fix. macOS's bash 3.2 treats an empty array as unbound under set -u, which stopped every editor mode there but the two-module one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every finding is now Fixed with a named test that was seen to fail when its fix was undone, except the part of H16 that isn't ours to change. Add the mutation results on the final code, and the limits that remain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All plugins used to share one hardcoded pair of UIDs, so one had to change, but it didn't have to be Echo. Hosts find a plugin in saved projects by UID, so Echo now pins its original pair in plugin_metadata.json. Reverb keeps the UIDs derived from its bundle id, as does any new plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ions - A worker crash during playback was silent for the user. The host now clears the block's magic word, and the Flutter editor shows "DSP stopped" until a new worker starts at the next activation. - Light agentpmo: AGENTS.md points at CLAUDE.md, and the Makefile gains lint, fmt, ci and setup. CI runs make lint. - The review records the assumption behind each choice and how to reverse it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eslop - AGENTS.md follows the terse format and drops paths that no longer exist. CLAUDE.md and GEMINI.md point at it. - The rules now match the design: the DSP worker is a dart compile exe binary, classes appear only where frameworks need them, and failures reach the host through the VST3 API. - .deslop.toml comes back with a 6.7% ceiling. make deslop and a CI job enforce it.
The spec moves to docs/. Each requirement now has an ID, the code that implements it and the test that proves it, or says no test does. A Gaps section lists where the code falls short. Nothing in it is fixed yet.
- Build analyzes and caches every binary. Test runs those binaries in parallel through each script's new test step. Coverage checks the reports and runs no tests. - coverage-thresholds.json sets per-package line coverage floors from measured numbers. Files the tests never load count as 0%, so the numbers aren't inflated. - make test now collects coverage, and make ci follows the same order. - The Deslop ceiling drops to 6.5%.
- The graph library finds the host library through its build rpath, so the cache now keeps that copy. - The audio regression test used its own copy of the ADelay fixture, which rebuilt the plugin during the test phase. It now shares plugin_fixture.dart.
Test files run in parallel, so sharing one folder made cmake race when a test built the fixture itself.
- Each package has its own Makefile, with shared rules in mk/ and vsts/plugin.mk. Targets starting with _ are private. - make deploy builds Echo and Reverb and copies both to the folder VST3 hosts scan. make deploy-echo and make deploy-reverb do one. These replace make install, here and in build.bat. - Recipes now stop on failure under Make 3.81, which macOS ships and which ignores .SHELLFLAGS. A for loop was hiding test failures there.
…ck throws and the macOS entrypoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a shared-memory plugin process model and an embedded Flutter editor, based on the work @alnitak originally submitted in #5. DSP runs in one compiled Dart worker per plugin instance, and the VST3 module and Flutter editor run in the host.
What changed compared with main
docs/FLUTTER_UI_SPEC.md.CIjob. Deslop gates duplication through.deslop.toml, andcoverage-thresholds.jsongates coverage. Pushes to branches no longer run CI, so each PR push runs it once.make deploy,make deploy-echoandmake deploy-reverbbuild the plugins and copy them to the folder VST3 hosts scan. Private targets start with_.VST3ProcessorAPI and the Echo classes that only existed for it.Known gaps
main; a plugin'smainmust call itsflutterEntrypoint([EDITOR-ENTRYPOINT]).make deployoutput has not been loaded in Ableton.🤖 Generated with Claude Code