:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/AudioEffectLimiter.xml. .. _class_AudioEffectLimiter: AudioEffectLimiter ================== **Inherits:** :ref:`AudioEffect` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` Adds a soft-clip limiter audio effect to an Audio bus. Description ----------- A limiter is similar to a compressor, but it's less flexible and designed to disallow sound going over a given dB threshold. Adding one in the Master bus is always recommended to reduce the effects of clipping. Soft clipping starts to reduce the peaks a little below the threshold level and progressively increases its effect as the input level increases such that the threshold is never exceeded. Properties ---------- +---------------------------+---------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`ceiling_db` | ``-0.1`` | +---------------------------+---------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`soft_clip_db` | ``2.0`` | +---------------------------+---------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`soft_clip_ratio` | ``10.0`` | +---------------------------+---------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`threshold_db` | ``0.0`` | +---------------------------+---------------------------------------------------------------------------+----------+ Property Descriptions --------------------- .. _class_AudioEffectLimiter_property_ceiling_db: - :ref:`float` **ceiling_db** +-----------+-----------------------+ | *Default* | ``-0.1`` | +-----------+-----------------------+ | *Setter* | set_ceiling_db(value) | +-----------+-----------------------+ | *Getter* | get_ceiling_db() | +-----------+-----------------------+ The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1. ---- .. _class_AudioEffectLimiter_property_soft_clip_db: - :ref:`float` **soft_clip_db** +-----------+-------------------------+ | *Default* | ``2.0`` | +-----------+-------------------------+ | *Setter* | set_soft_clip_db(value) | +-----------+-------------------------+ | *Getter* | get_soft_clip_db() | +-----------+-------------------------+ Applies a gain to the limited waves, in decibels. Value can range from 0 to 6. ---- .. _class_AudioEffectLimiter_property_soft_clip_ratio: - :ref:`float` **soft_clip_ratio** +-----------+----------------------------+ | *Default* | ``10.0`` | +-----------+----------------------------+ | *Setter* | set_soft_clip_ratio(value) | +-----------+----------------------------+ | *Getter* | get_soft_clip_ratio() | +-----------+----------------------------+ ---- .. _class_AudioEffectLimiter_property_threshold_db: - :ref:`float` **threshold_db** +-----------+-------------------------+ | *Default* | ``0.0`` | +-----------+-------------------------+ | *Setter* | set_threshold_db(value) | +-----------+-------------------------+ | *Getter* | get_threshold_db() | +-----------+-------------------------+ Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`