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

Feature request: pass a state to be loaded when instantiating plugin #129

Open
mqtthiqs opened this issue Jun 20, 2024 · 2 comments
Open

Comments

@mqtthiqs
Copy link

Our plugin has some non-parameter state that assigns the declared parameters to real audio parameters. At its default state, no assignments are set up, so there is really no point testing anything, making pluginval useless for us.

We'd really like to use your tool! It would be awesome to have a CLI option to load a blob as the initial state of the plugin.
Thanks in advance for your consideration :)

@drowaudio
Copy link
Contributor

Interesting. I could maybe add an option to do that but bit seems a bit niche... Part of the power of pluginval is that it runs tests in a random order to avoid "magic paths" like this.

Are you not able to load a valid state by default? Or could you use an environment variable for a path to a state to load upon construction of the plugin? That would probably be more useful than having pluginval load some state at specific points in the tests.

@mqtthiqs
Copy link
Author

For a bit of context, our plugin is one of these "shells" that allow you to load modules, and then link some generic parameters to the modules' parameters. When you first load the plugin it has no modules loaded, thus the need for loading a state with some modules in (and why a "valid" state by default is off the table).

Another use case I can think of is MIDI parameter assignment, which are also typically stored in non-parameter state, therefore not checked in pluginval today.

An environment variable to load the state is an interesting solution I hadn't thought of (with the downside that we'd need support for this in the main build). Will consider it, thanks!

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

2 participants