Time-frequency Automatic Gain Control (AGC)
Version 1.1.0.0 (387 KB) by
Dan Ellis
Automatic Gain Control (AGC) attempts to maintain a constant energy level for an audio signal.
This code implements automatic gain control for audio signals, which attempts to apply a smoothly-varying gain to an audio waveform in order to keep its energy close to some target level. This version also tries to balance the energy in individual frequency bands. It works by taking the short-time Fourier transform of the signal, smoothing that energy using time and frequency scales specified as arguments, then dividing out that scaled energy.
Cite As
Dan Ellis (2026). Time-frequency Automatic Gain Control (AGC) (https://www.mathworks.com/matlabcentral/fileexchange/28472-time-frequency-automatic-gain-control-agc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Audio Processing Algorithm Design in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
