Repository navigation
Sway embed plugins - #9
Merged
danieljtrujillo merged 2 commits intoOct 2, 2026
Merged
Conversation
…rk through theDAW
The browser bridge used to post the desktop sidecar's shapes to theDAW's
routes, which answered 422 or nothing: PARAMS listed no parameters, EDIT
never read the window's state back, RENDER was refused outright, and the
plugin list threw on a .gan without controls.
vst.params posts {plugin_path} to /api/vst/load, turns the descriptors
into the sidecar's rows with the panel's own values laid over them, and
releases the worker with /api/vst/unload. vst.editor posts the plugin
path and its saved state to /api/vst/open-editor and polls
/api/vst/editor-result until the window closes, keeping the captured state
on the track's plugin entry. vst.render posts the clip and the chain to
/api/sway/vst-render and plays the wet file beside the dry one under the
track's wet / dry mix; a clip picked in the browser has no file theDAW can
read and is refused with the fix named. vst.scan answers the array the
panel maps, and vst.status the fields the pill and note read.
.gan plugins take ganfile.js's describe() shape from /api/plugin/list and
/api/plugin/open, so the panel's control rows render. Inside theDAW, LOAD
opens a chooser of theDAW's installed plugins plus "Open a .gan file",
which asks the host with sway/choose-plugin-file and waits for its
sway/plugin-file answer; a host that lists 'plugin-file' in its
sway/host-ready caps gets the dialog's time, any other a short wait and a
notice that it cannot pick files.
renderTrackVst and the PARAMS and EDIT handlers treat an { ok: false }
answer as the failure the desktop rejects with, so no wet media without a
file is ever made.
This was referenced Oct 3, 2026
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.
Embedded in theDAW, a track's VST3 chain and the LOAD .gan chooser work through theDAW
The browser bridge used to post the desktop sidecar's shapes to theDAW's
routes, which answered 422 or nothing: PARAMS listed no parameters, EDIT
never read the window's state back, RENDER was refused outright, and the
plugin list threw on a .gan without controls.
vst.params posts {plugin_path} to /api/vst/load, turns the descriptors
into the sidecar's rows with the panel's own values laid over them, and
releases the worker with /api/vst/unload. vst.editor posts the plugin
path and its saved state to /api/vst/open-editor and polls
/api/vst/editor-result until the window closes, keeping the captured state
on the track's plugin entry. vst.render posts the clip and the chain to
/api/sway/vst-render and plays the wet file beside the dry one under the
track's wet / dry mix; a clip picked in the browser has no file theDAW can
read and is refused with the fix named. vst.scan answers the array the
panel maps, and vst.status the fields the pill and note read.
.gan plugins take ganfile.js's describe() shape from /api/plugin/list and
/api/plugin/open, so the panel's control rows render. Inside theDAW, LOAD
opens a chooser of theDAW's installed plugins plus "Open a .gan file",
which asks the host with sway/choose-plugin-file and waits for its
sway/plugin-file answer; a host that lists 'plugin-file' in its
sway/host-ready caps gets the dialog's time, any other a short wait and a
notice that it cannot pick files.
renderTrackVst and the PARAMS and EDIT handlers treat an { ok: false }
answer as the failure the desktop rejects with, so no wet media without a
file is ever made.