class_audioeffectlimiter.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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/AudioEffectLimiter.xml.
  6. .. _class_AudioEffectLimiter:
  7. AudioEffectLimiter
  8. ==================
  9. **Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Adds a soft-clip limiter audio effect to an Audio bus.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. 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.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Audio buses <../tutorials/audio/audio_buses>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------+---------------------------------------------------------------------------+----------+
  26. | :ref:`float<class_float>` | :ref:`ceiling_db<class_AudioEffectLimiter_property_ceiling_db>` | ``-0.1`` |
  27. +---------------------------+---------------------------------------------------------------------------+----------+
  28. | :ref:`float<class_float>` | :ref:`soft_clip_db<class_AudioEffectLimiter_property_soft_clip_db>` | ``2.0`` |
  29. +---------------------------+---------------------------------------------------------------------------+----------+
  30. | :ref:`float<class_float>` | :ref:`soft_clip_ratio<class_AudioEffectLimiter_property_soft_clip_ratio>` | ``10.0`` |
  31. +---------------------------+---------------------------------------------------------------------------+----------+
  32. | :ref:`float<class_float>` | :ref:`threshold_db<class_AudioEffectLimiter_property_threshold_db>` | ``0.0`` |
  33. +---------------------------+---------------------------------------------------------------------------+----------+
  34. .. rst-class:: classref-section-separator
  35. ----
  36. .. rst-class:: classref-descriptions-group
  37. Property Descriptions
  38. ---------------------
  39. .. _class_AudioEffectLimiter_property_ceiling_db:
  40. .. rst-class:: classref-property
  41. :ref:`float<class_float>` **ceiling_db** = ``-0.1``
  42. .. rst-class:: classref-property-setget
  43. - void **set_ceiling_db** **(** :ref:`float<class_float>` value **)**
  44. - :ref:`float<class_float>` **get_ceiling_db** **(** **)**
  45. The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_AudioEffectLimiter_property_soft_clip_db:
  49. .. rst-class:: classref-property
  50. :ref:`float<class_float>` **soft_clip_db** = ``2.0``
  51. .. rst-class:: classref-property-setget
  52. - void **set_soft_clip_db** **(** :ref:`float<class_float>` value **)**
  53. - :ref:`float<class_float>` **get_soft_clip_db** **(** **)**
  54. Applies a gain to the limited waves, in decibels. Value can range from 0 to 6.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_AudioEffectLimiter_property_soft_clip_ratio:
  58. .. rst-class:: classref-property
  59. :ref:`float<class_float>` **soft_clip_ratio** = ``10.0``
  60. .. rst-class:: classref-property-setget
  61. - void **set_soft_clip_ratio** **(** :ref:`float<class_float>` value **)**
  62. - :ref:`float<class_float>` **get_soft_clip_ratio** **(** **)**
  63. .. container:: contribute
  64. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_AudioEffectLimiter_property_threshold_db:
  68. .. rst-class:: classref-property
  69. :ref:`float<class_float>` **threshold_db** = ``0.0``
  70. .. rst-class:: classref-property-setget
  71. - void **set_threshold_db** **(** :ref:`float<class_float>` value **)**
  72. - :ref:`float<class_float>` **get_threshold_db** **(** **)**
  73. Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0.
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  77. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  78. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  79. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  80. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`