SimpleCompressor
Code and theory of a look-ahead compressor / limiter.
Install / Use
/learn @DanielRudrich/SimpleCompressorREADME
SimpleCompressor
Code and theory of a look-ahead compressor/limiter.
Purpose
The purpose of this project to demonstrate and describe, how a look-ahead limiter works and how to implement it. About 95%<sup>1</sup> of all the sources (books, internet articles and forum threads) recommend a very easy way to implement the look-ahead feature, but unfortunately, 100%<sup>2</sup> of those applications will lose their ability to limit the signal's level.
With this, I want to shed a little light on the mystery of look-ahead limiters :wink:
What's in the box?
Clicking the following links brings you directly to the docs.
This repository includes:
- C++ classes
- computation of the gain reduction from a given side-chain signal
- look-ahead processing of the gain reduction samples
- JUCE class: a compressor class which wraps the gain reduction class into a JUCE audio processor
- JUCE example projects
- SimpleCompressor: making use of the wrapper, implementing a compressor without look-ahead
- LookAheadCompressor: compressor / limiter with look-ahead feature
- thirdpary classes for multi-channel samples-delays and visualization of the compressor characteristic
- a tutorial: How to implement look-ahead limiters
References
The compressor class is mainly based on this presentation:
- http://c4dm.eecs.qmul.ac.uk/audioengineering/compressors/documents/Reiss-Tutorialondynamicrangecompression.pdf
The sample delay class and visualization class is taken from the IEM Plug-in Suite
- website: https://plugins.iem.at
- source-code: https://git.iem.at/audioplugins/IEMPluginSuite
Screenshot of the LookAheadCompressor plug-in

<sup>1</sup> not based on scientific data, but estimated rather subjectively.
<sup>2</sup> yeah, all of them.
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
