123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioEffectHardLimiter.xml.
- .. _class_AudioEffectHardLimiter:
- AudioEffectHardLimiter
- ======================
- **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Adds a hard limiter audio effect to an Audio bus.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- A limiter is an effect designed to disallow sound from going over a given dB threshold. Hard limiters predict volume peaks, and will smoothly apply gain reduction when a peak crosses the ceiling threshold to prevent clipping and distortion. It preserves the waveform and prevents it from crossing the ceiling threshold. 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.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`Audio buses <../tutorials/audio/audio_buses>`
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +---------------------------+-----------------------------------------------------------------------+----------+
- | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectHardLimiter_property_ceiling_db>` | ``-0.3`` |
- +---------------------------+-----------------------------------------------------------------------+----------+
- | :ref:`float<class_float>` | :ref:`pre_gain_db<class_AudioEffectHardLimiter_property_pre_gain_db>` | ``0.0`` |
- +---------------------------+-----------------------------------------------------------------------+----------+
- | :ref:`float<class_float>` | :ref:`release<class_AudioEffectHardLimiter_property_release>` | ``0.1`` |
- +---------------------------+-----------------------------------------------------------------------+----------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_AudioEffectHardLimiter_property_ceiling_db:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **ceiling_db** = ``-0.3`` :ref:`🔗<class_AudioEffectHardLimiter_property_ceiling_db>`
- .. rst-class:: classref-property-setget
- - |void| **set_ceiling_db**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_ceiling_db**\ (\ )
- The waveform's maximum allowed value, in decibels. This value can range from ``-24.0`` to ``0.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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_AudioEffectHardLimiter_property_pre_gain_db:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **pre_gain_db** = ``0.0`` :ref:`🔗<class_AudioEffectHardLimiter_property_pre_gain_db>`
- .. rst-class:: classref-property-setget
- - |void| **set_pre_gain_db**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_pre_gain_db**\ (\ )
- Gain to apply before limiting, in decibels.
- .. rst-class:: classref-item-separator
- ----
- .. _class_AudioEffectHardLimiter_property_release:
- .. rst-class:: classref-property
- :ref:`float<class_float>` **release** = ``0.1`` :ref:`🔗<class_AudioEffectHardLimiter_property_release>`
- .. rst-class:: classref-property-setget
- - |void| **set_release**\ (\ value\: :ref:`float<class_float>`\ )
- - :ref:`float<class_float>` **get_release**\ (\ )
- Time it takes in seconds for the gain reduction to fully release.
- .. |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.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|