|
Gin
|
Simple gain processor with ramping to avoid discontinuities. More...
#include <gin_audioutil.h>
Public Member Functions | |
| void | setGain (float g) |
| void | reset () |
| void | process (juce::AudioSampleBuffer &buffer) |
Simple gain processor with ramping to avoid discontinuities.
GainProcessor applies gain to an audio buffer with automatic ramping between gain values to prevent clicks and pops. It maintains the previous gain value and applies a linear ramp when the gain changes.
Key Features:
Usage:
Note: Gain ramping occurs over the entire buffer length. For longer buffers, this provides smoother transitions. For per-sample control, consider juce::LinearSmoothedValue instead.
| void GainProcessor::reset | ( | ) |
| void GainProcessor::process | ( | juce::AudioSampleBuffer & | buffer | ) |