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: export current preset as Swift code #164

Closed
jupdike opened this issue Jul 1, 2020 · 1 comment
Closed

Feature request: export current preset as Swift code #164

jupdike opened this issue Jul 1, 2020 · 1 comment

Comments

@jupdike
Copy link

jupdike commented Jul 1, 2020

It would be amazing to use Synth One to create or tweak a preset and then press some sort of new Export Code button and get a chunk of text of Swift AudioKit code that would allow that exact instrument to be built independently of the Synth One app, including all parameters. Bonus points if this were available as a Playground export.

Perhaps this would require deeper changes to AudioKit to allow individual nodes to track their metadata (class names?), parameters and the ability to walk a node graph and retrieve this information. Probably some Synth One-specific code too. Once the node parameters and topology were available it might be possible to turn a directed acyclic graph into an ordered list and then generate variable names and concatenate all the strings as a block of code. Bonus points for removing nodes that don’t change the sound, to deliver the simplest, cleanest code.

Perhaps this is easier with the code for AnalogSynth X as a starting point, since it is much simpler.

@aure
Copy link
Member

aure commented Jul 2, 2020

Yeah, definitely this would not be possible with the Synth One audio engine. Interesting idea for sure though!

@aure aure closed this as completed Jul 2, 2020
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