class_audioeffecthardlimiter.rst 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AudioEffectHardLimiter.xml.
  6. .. _class_AudioEffectHardLimiter:
  7. AudioEffectHardLimiter
  8. ======================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Adds a hard limiter audio effect to an Audio bus.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------+-----------------------------------------------------------------------+----------+
  25. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectHardLimiter_property_ceiling_db>` | ``-0.3`` |
  26. +---------------------------+-----------------------------------------------------------------------+----------+
  27. | :ref:`float<class_float>` | :ref:`pre_gain_db<class_AudioEffectHardLimiter_property_pre_gain_db>` | ``0.0`` |
  28. +---------------------------+-----------------------------------------------------------------------+----------+
  29. | :ref:`float<class_float>` | :ref:`release<class_AudioEffectHardLimiter_property_release>` | ``0.1`` |
  30. +---------------------------+-----------------------------------------------------------------------+----------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Property Descriptions
  35. ---------------------
  36. .. _class_AudioEffectHardLimiter_property_ceiling_db:
  37. .. rst-class:: classref-property
  38. :ref:`float<class_float>` **ceiling_db** = ``-0.3`` :ref:`🔗<class_AudioEffectHardLimiter_property_ceiling_db>`
  39. .. rst-class:: classref-property-setget
  40. - |void| **set_ceiling_db**\ (\ value\: :ref:`float<class_float>`\ )
  41. - :ref:`float<class_float>` **get_ceiling_db**\ (\ )
  42. The waveform's maximum allowed value, in decibels. This value can range from ``-24.0`` to ``0.0``.
  43. 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.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_AudioEffectHardLimiter_property_pre_gain_db:
  47. .. rst-class:: classref-property
  48. :ref:`float<class_float>` **pre_gain_db** = ``0.0`` :ref:`🔗<class_AudioEffectHardLimiter_property_pre_gain_db>`
  49. .. rst-class:: classref-property-setget
  50. - |void| **set_pre_gain_db**\ (\ value\: :ref:`float<class_float>`\ )
  51. - :ref:`float<class_float>` **get_pre_gain_db**\ (\ )
  52. Gain to apply before limiting, in decibels.
  53. .. rst-class:: classref-item-separator
  54. ----
  55. .. _class_AudioEffectHardLimiter_property_release:
  56. .. rst-class:: classref-property
  57. :ref:`float<class_float>` **release** = ``0.1`` :ref:`🔗<class_AudioEffectHardLimiter_property_release>`
  58. .. rst-class:: classref-property-setget
  59. - |void| **set_release**\ (\ value\: :ref:`float<class_float>`\ )
  60. - :ref:`float<class_float>` **get_release**\ (\ )
  61. Time it takes in seconds for the gain reduction to fully release.
  62. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  63. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  64. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  65. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  66. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  67. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  68. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  69. .. |void| replace:: :abbr:`void (No return value.)`