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

Possible to use VST model programmatically? #493

Open
olaviinha opened this issue May 16, 2023 · 1 comment
Open

Possible to use VST model programmatically? #493

olaviinha opened this issue May 16, 2023 · 1 comment

Comments

@olaviinha
Copy link

Anybody have any ideas if it's possible to use the new VST models programmatically for synthesizing audio on Python / Colab, and if so, how to do it?

@jesseengel
Copy link
Contributor

The SavedModels are specifically saved to work with the VST C++ code, so they it would be a little tricky, but you should be able to load them as typical saved models and call them in a for loop.

You would need to call Feature Extraction, Predict Controls, and Synthesize each in the inner loop or their own loops and carry the state manually. Code showing what's going on inside the saved models: https://github.com/magenta/ddsp/blob/main/ddsp/training/inference.py#L191

Extract Features Model: https://github.com/magenta/ddsp-vst/tree/main/models/pitch-detection

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