Gin icon indicating copy to clipboard operation
Gin copied to clipboard

gin::Dynamics usage

Open codecat opened this issue 4 years ago • 0 comments

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?

codecat avatar Jul 22 '21 15:07 codecat