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

Add effects to the example, refactor some parts and rename it #147

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

Simon-L
Copy link
Contributor

@Simon-L Simon-L commented Oct 15, 2024

The example has been renamed CLIExample.cpp

I've had to duplicate some of the code but factored as much as possible out of the example main function. I think it's not too bad that it ends up as 2 separate functions: for a dev ending up reading the code, it makes the separation between voice effects and the other effects clearer.

I have a question about ConcreteConfig and FxConfig, there is a difference in the (equal)NoteToPitch and noteToPitch functions: the latter is pow(2.f, (f + 69) / 12.f) while the former misses the + 69, afaik 69 corresponds to A4 == 440Hz.

@baconpaul
Copy link
Contributor

Yeah one is 440 centered and one is 8.192 centered and it’s a bummer

thank you for this! I’ll take a look tomorrow morning

@baconpaul
Copy link
Contributor

Yeah this is great! Merging!

@baconpaul baconpaul merged commit 7610ffa into surge-synthesizer:main Oct 15, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants