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

gin::Dynamics usage #18

Open
codecat opened this issue Jul 22, 2021 · 0 comments
Open

gin::Dynamics usage #18

codecat opened this issue Jul 22, 2021 · 0 comments

Comments

@codecat
Copy link

codecat commented Jul 22, 2021

I don't really understand how to properly use this class. Here's my current usage:

// during setup:
m_limiter.setSampleRate(sampleRate);
m_limiter.setNumChannels(2);
m_limiter.setMode(gin::Dynamics::limiter);
m_limiter.setParams(
	0.002f, // Attack in seconds
	0.08f, // Release in seconds
	0, // Threshold in dB?
	10, // Ratio in ?
	0 // Knee width in ?
);

// during processing:
m_limiter.process(buffer);

If I set the threshold to -50, it only seems to lower the output volume. Am I doing something wrong? What parameters do I use to get a similar result as juce::dsp::Limiter?

Also, I assume the extra pointer in process() is for displaying the envelope in UI?

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

1 participant