AudioEffectHardLimiter
Inherits: AudioEffect < Resource < RefCounted < Object
Description
Section titled “Description”Adds a limiter audio effect to an audio bus.
Prevents audio signals from exceeding a specified volume level.
A “limiter” disallows audio signals from exceeding a given volume threshold level in dB. Hard limiters predict volume peaks, and will smoothly apply gain reduction when a peak crosses the ceiling threshold level to prevent clipping. It preserves the waveform and prevents it from crossing the ceiling threshold level. Adding one in the Master bus is recommended as a safety measure to prevent sudden volume peaks from occurring, and to prevent distortion caused by clipping, when the volume exceeds 0 dB.
If clipping is desired, consider AudioEffectDistortion.MODE_CLIP.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | ceiling_db |
-0.3 |
| float | pre_gain_db |
0.0 |
| float | release |
0.1 |
Property descriptions
Section titled “Property descriptions”ceiling_db
float ceiling_db = -0.3
The waveform’s maximum allowed value, in dB. This value can range from -24 to 0.
The default value of -0.3 prevents potential inter-sample peaks (ISP) from crossing over 0 dB, which can cause slight distortion on some older hardware.
pre_gain_db
float pre_gain_db = 0.0
Gain before limiting, in dB. Value can range from -24 to 24.
release
float release = 0.1
Time it takes in seconds for the gain reduction to fully release. Value can range from 0.01 to 3.
