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

Patch Binaries #7246

Closed
zfarrell13 opened this issue Oct 6, 2023 · 4 comments
Closed

Patch Binaries #7246

zfarrell13 opened this issue Oct 6, 2023 · 4 comments
Labels
Discussion User Support Request Issues where users are looking for help, not development items

Comments

@zfarrell13
Copy link

Hello, I am trying to generate many random patches for a project that im working on. I want to build a script that will generate and save patches, altering each parameters for the patch at specific intervals, but I do not know how to decode the patch binaries. can someone point me to some documentation that can help me find this?

@baconpaul
Copy link
Collaborator

check out the scripts/patch-tool directory for python code that reads them

the basic format is

A VST2 "fxp" wrapper
the content block comprises an XML doc and optional wavetables
The XML block is written and read in src/common/SurgePatch.cpp
We do not have documentation beyond the code

Would be happy to expand the tooling or documentation here.

@baconpaul
Copy link
Collaborator

Oh and, speculating you might be doing some sort of machine learning training thingy which has you generating lots of patches, direct patch generation may not be the only option. We have an entire python embedded api which lets you configure the synth, and in the nightlies, have full open sound control access to the parameters also. Those may be easier routes for re-configuring the synth repeatedly.

@mkruselj mkruselj added the User Support Request Issues where users are looking for help, not development items label Oct 6, 2023
@zfarrell13
Copy link
Author

thats correct! thanks very much for the suggestions. will chime back in if i hit roadblocks or have other questions.

@mkruselj
Copy link
Collaborator

mkruselj commented Oct 7, 2023

We will close the issue for the time being, but you are welcome to keep us updated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion User Support Request Issues where users are looking for help, not development items
Projects
None yet
Development

No branches or pull requests

3 participants