Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom command extension #151

Open
atsushieno opened this issue Mar 23, 2023 · 0 comments
Open

Custom command extension #151

atsushieno opened this issue Mar 23, 2023 · 0 comments

Comments

@atsushieno
Copy link
Owner

Once we get GUI set in stone, Web UI backed developers will have to deal with custom commands that go beyond parameter changes or existing extensions (e.g. presets operation), such as "get list of sampler file", "load sampler file xxx", etc.

Since Web UI does not have access to those resources in the plugin, it will have to interact with its own AudioPluginService through process() i.e. as MIDI2 messages. At this stage there is no standard way to achieve this i.e. everything is weakly typed, it would be convenient to have some sort of "command" format so that both Web UI host and plugin does not have to implement serialization of requests and responses to and from process() content, manually.

To achieve that, we would need a "command" extension, that takes a command name, and set of arguments of limited set of types (maybe just JSON types: number, boolean, string, array, object, and null). Then host and plugin libraries could support them in terms of automated serialization and dispatching.

It might not have to take an "extension" form, but we'd figure out what could be viable options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant