Time-frequency Automatic Gain Control (AGC)

Automatic Gain Control (AGC) attempts to maintain a constant energy level for an audio signal.
2.5K Downloads
Updated 13 Aug 2010

View License

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 (2024). 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 Linux
Categories
Find more on Audio Processing Algorithm Design in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Fixed typo in title: frequenc -> frequency

1.0.0.0